summary refs log tree commit diff
path: root/src/UserSettingsPage.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-01 21:26:34 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-01 21:26:34 +0300
commitdf42fdc80f9f040673c7a12c91c4725b169f14a0 (patch)
treea6e2d8611e16b7502d2d99ebfb4f744647781cb8 /src/UserSettingsPage.cpp
parentConsider the scale ratio when scaling down images (diff)
downloadnheko-df42fdc80f9f040673c7a12c91c4725b169f14a0.tar.xz
Remove unwanted whitespace from the user settings menu
Diffstat (limited to 'src/UserSettingsPage.cpp')
-rw-r--r--src/UserSettingsPage.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 05fd54df..1bc44e14 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -220,13 +220,15 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
 
         font.setWeight(65);
         auto general_ = new QLabel(tr("GENERAL"), this);
+        general_->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
         general_->setFont(font);
 
         mainLayout_ = new QVBoxLayout;
+        mainLayout_->setAlignment(Qt::AlignTop);
         mainLayout_->setSpacing(7);
         mainLayout_->setContentsMargins(
           sideMargin_, LayoutTopMargin, sideMargin_, LayoutBottomMargin);
-        mainLayout_->addWidget(general_, 1, Qt::AlignLeft | Qt::AlignVCenter);
+        mainLayout_->addWidget(general_, 1, Qt::AlignLeft | Qt::AlignBottom);
         mainLayout_->addWidget(new HorizontalLine(this));
         mainLayout_->addLayout(trayOptionLayout_);
         mainLayout_->addLayout(startInTrayOptionLayout_);
@@ -249,6 +251,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
 
         mainLayout_->addLayout(themeOptionLayout_);
         mainLayout_->addWidget(new HorizontalLine(this));
+        mainLayout_->addStretch(1);
 
         auto scrollArea_ = new QScrollArea(this);
         scrollArea_->setFrameShape(QFrame::NoFrame);
@@ -263,7 +266,8 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
 
         scrollArea_->setWidget(scrollAreaContents_);
         topLayout_->addLayout(topBarLayout_);
-        topLayout_->addWidget(scrollArea_);
+        topLayout_->addWidget(scrollArea_, Qt::AlignTop);
+        topLayout_->addStretch(1);
         topLayout_->addWidget(versionInfo);
 
         connect(themeCombo_,