Adjust the height of the bottom widgets

This commit is contained in:
Konstantinos Sideris 2018-10-06 18:07:02 +03:00
parent f58cbd7281
commit 675f1be777
2 changed files with 26 additions and 11 deletions

View file

@ -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);