forked from qt-creator/qt-creator
Utils: Introduce a Layouting::empty item
A bit more explicit than the current mix of Space() and asserting {}.
Change-Id: Ia296b1d23294dfccd1e33827e136b821a4d2c6fe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -124,7 +124,7 @@ GeneralSettingsWidget::GeneralSettingsWidget(GeneralSettings *q)
|
||||
|
||||
if (!Utils::HostOsInfo::isMacHost()) {
|
||||
auto dpiCheckbox = new QCheckBox(tr("Enable high DPI scaling"));
|
||||
form.addRow({Space(), dpiCheckbox});
|
||||
form.addRow({empty, dpiCheckbox});
|
||||
const bool defaultValue = Utils::HostOsInfo::isWindowsHost();
|
||||
dpiCheckbox->setChecked(ICore::settings()->value(settingsKeyDPI, defaultValue).toBool());
|
||||
connect(dpiCheckbox, &QCheckBox::toggled, this, [defaultValue](bool checked) {
|
||||
@@ -135,7 +135,7 @@ GeneralSettingsWidget::GeneralSettingsWidget(GeneralSettings *q)
|
||||
});
|
||||
}
|
||||
|
||||
form.addRow({Space(), m_showShortcutsInContextMenus});
|
||||
form.addRow({empty, m_showShortcutsInContextMenus});
|
||||
form.addRow(Row{m_resetWarningsButton, st});
|
||||
form.addRow({tr("Text codec for tools:"), m_codecBox, st});
|
||||
Column{Group{Title(tr("User Interface")), form}}.attachTo(this);
|
||||
|
||||
Reference in New Issue
Block a user