Adjust the height of the bottom widgets
This commit is contained in:
parent
f58cbd7281
commit
675f1be777
2 changed files with 26 additions and 11 deletions
|
|
@ -14,7 +14,13 @@
|
|||
SideBarActions::SideBarActions(QWidget *parent)
|
||||
: QWidget{parent}
|
||||
{
|
||||
setFixedHeight(conf::sidebarActions::height);
|
||||
QFont f;
|
||||
f.setPointSizeF(f.pointSizeF());
|
||||
|
||||
const int fontHeight = QFontMetrics(f).height();
|
||||
const int contentHeight = fontHeight * 2.5;
|
||||
|
||||
setFixedHeight(contentHeight);
|
||||
|
||||
layout_ = new QHBoxLayout(this);
|
||||
layout_->setMargin(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue