From c2faaa4d39900fc15f940e6dc32cba382491f1e5 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 7 Oct 2018 12:58:38 +0300 Subject: [PATCH] Add the correct parent to scaleCombo --- CHANGELOG.md | 11 +++++++++++ src/UserSettingsPage.cpp | 19 +++++++------------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a85a2ff..c4e810d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ ## [Unreleased] +## [0.6.2] - 2018-10-06 + +### Features +- Display tags as sorting items in the community panel (#401 @vberger) +- Add ability to configure the font size. + +### Improvements +- Don't enable tray by default. +- Remove room re-ordering option. +- Hard-coded pixel values were removed. The sizes are derived from the font. + ## [0.6.1] - 2018-09-26 ### Improvements diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index cd49e62..15ad72e 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -200,18 +200,14 @@ UserSettingsPage::UserSettingsPage(QSharedPointer settings, QWidge auto scaleFactorOptionLayout = new QHBoxLayout; scaleFactorOptionLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin); - auto scaleFactorLabel = new QLabel(tr("Scale factor (requires restart)"), this); + auto scaleFactorLabel = new QLabel(tr("Scale factor"), this); scaleFactorLabel->setFont(font); scaleFactorCombo_ = new QComboBox(this); - scaleFactorCombo_->addItem("1"); - scaleFactorCombo_->addItem("1.25"); - scaleFactorCombo_->addItem("1.5"); - scaleFactorCombo_->addItem("1.75"); - scaleFactorCombo_->addItem("2"); - scaleFactorCombo_->addItem("2.25"); - scaleFactorCombo_->addItem("2.5"); - scaleFactorCombo_->addItem("2.75"); - scaleFactorCombo_->addItem("3"); + for (double option = 1; option <= 3; option += 0.25) + scaleFactorCombo_->addItem(QString::number(option)); + + scaleFactorOptionLayout->addWidget(scaleFactorLabel); + scaleFactorOptionLayout->addWidget(scaleFactorCombo_, 0, Qt::AlignRight); auto fontSizeOptionLayout = new QHBoxLayout; fontSizeOptionLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin); @@ -319,10 +315,9 @@ UserSettingsPage::UserSettingsPage(QSharedPointer settings, QWidge #if defined(Q_OS_MAC) scaleFactorLabel->hide(); scaleFactorCombo_->hide(); -#else - mainLayout_->addLayout(scaleFactorOptionLayout); #endif + mainLayout_->addLayout(scaleFactorOptionLayout); mainLayout_->addLayout(fontSizeOptionLayout); mainLayout_->addWidget(new HorizontalLine(this)); mainLayout_->addLayout(themeOptionLayout_);