forked from qt-creator/qt-creator
Utils: Introduce Layouting::{br,st}
... as "standard" ways to define line breaks and simple stretch. There have already been too many patterns to do it. Break() and Stretch() still work for the patches in flight, but they are planned to be removed. Change-Id: I9b70dcdc11244a904a496b0c55938dfb0b265fc8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -118,9 +118,9 @@ GeneralSettingsWidget::GeneralSettingsWidget(GeneralSettings *q)
|
||||
resetColorButton->setToolTip(tr("Reset to default.", "Color"));
|
||||
|
||||
Form form;
|
||||
form.addRow({tr("Color:"), m_colorButton, resetColorButton, Stretch()});
|
||||
form.addRow({tr("Color:"), m_colorButton, resetColorButton, st});
|
||||
form.addRow({tr("Theme:"), m_themeChooser});
|
||||
form.addRow({tr("Language:"), m_languageBox, Stretch()});
|
||||
form.addRow({tr("Language:"), m_languageBox, st});
|
||||
|
||||
if (!Utils::HostOsInfo::isMacHost()) {
|
||||
auto dpiCheckbox = new QCheckBox(tr("Enable high DPI scaling"));
|
||||
@@ -136,8 +136,8 @@ GeneralSettingsWidget::GeneralSettingsWidget(GeneralSettings *q)
|
||||
}
|
||||
|
||||
form.addRow({Space(), m_showShortcutsInContextMenus});
|
||||
form.addRow(Row{m_resetWarningsButton, Stretch()});
|
||||
form.addRow({tr("Text codec for tools:"), m_codecBox, Stretch()});
|
||||
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);
|
||||
|
||||
fillLanguageBox();
|
||||
|
||||
Reference in New Issue
Block a user