Commit f60fd58f authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Fix status bar contents not filling the available width

Apparently using box layout size constraints is way more limited than using widget size policies.
parent 2b7163db
......@@ -147,6 +147,7 @@ struct ViewMainPagePrivate
mToolContainer->setBackgroundRole(QPalette::Mid);
//--
mStatusBarContainer = new QWidget;
mStatusBarContainer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
mToggleSideBarButton = new StatusBarToolButton;
mToggleThumbnailBarButton = new StatusBarToolButton;
mZoomWidget = new ZoomWidget;
......@@ -161,7 +162,6 @@ struct ViewMainPagePrivate
mDocumentCountLabel->setContentsMargins(labelMargins);
QHBoxLayout* statusBarContainerLayout = new QHBoxLayout(mStatusBarContainer);
statusBarContainerLayout->setSizeConstraint(QLayout::SetFixedSize);
statusBarContainerLayout->setContentsMargins(0, 0, 0, 0);
statusBarContainerLayout->setSpacing(0);
statusBarContainerLayout->addWidget(mToggleSideBarButton);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment