From 4517edd8945664a3d2a1474d40c159b4fdaea291 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 16 Nov 2020 15:50:04 +0100 Subject: [PATCH] Reduce clutter in System preferences Vertically align some more things. Change-Id: I6f106369252035e07a4b56e4b5b8f066b2338cb0 Reviewed-by: Christian Kandeler --- src/plugins/coreplugin/systemsettings.cpp | 5 +- src/plugins/coreplugin/systemsettings.ui | 224 ++++++++++------------ 2 files changed, 108 insertions(+), 121 deletions(-) diff --git a/src/plugins/coreplugin/systemsettings.cpp b/src/plugins/coreplugin/systemsettings.cpp index 4d4234e6259..109ce4fc9fe 100644 --- a/src/plugins/coreplugin/systemsettings.cpp +++ b/src/plugins/coreplugin/systemsettings.cpp @@ -87,9 +87,7 @@ public: m_ui.externalFileBrowserEdit->setText(UnixUtils::fileBrowser(ICore::settings())); } else { m_ui.externalFileBrowserLabel->hide(); - m_ui.externalFileBrowserEdit->hide(); - m_ui.resetFileBrowserButton->hide(); - m_ui.helpExternalFileBrowserButton->hide(); + m_ui.externalFileBrowserWidget->hide(); } const QString patchToolTip = tr("Command used for reverting diff chunks."); @@ -149,6 +147,7 @@ public: else m_ui.fileSystemCaseSensitivityChooser->setCurrentIndex(1); } else { + m_ui.fileSystemCaseSensitivityLabel->hide(); m_ui.fileSystemCaseSensitivityWidget->hide(); } diff --git a/src/plugins/coreplugin/systemsettings.ui b/src/plugins/coreplugin/systemsettings.ui index 769a8e04c98..1e9a2f9d857 100644 --- a/src/plugins/coreplugin/systemsettings.ui +++ b/src/plugins/coreplugin/systemsettings.ui @@ -24,7 +24,7 @@ - + @@ -55,18 +55,18 @@ + + + + Reset to default. + + + Reset + + + - - - - Reset to default. - - - Reset - - - @@ -74,24 +74,42 @@ - - - - - - - Reset to default. - - - Reset - - - - - - - ? - + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + Reset to default. + + + Reset + + + + + + + ? + + + + @@ -104,7 +122,17 @@ - + + + + Influences how file names are matched to decide if they are the same. + + + File system case sensitivity: + + + + @@ -119,27 +147,17 @@ 0 - - - - Influences how file names are matched to decide if they are the same. - - - File system case sensitivity: - - - - + Qt::Horizontal - 40 + 202 20 @@ -148,15 +166,15 @@ - + + + + When files are externally modified: + + + + - - - - When files are externally modified: - - - @@ -194,34 +212,18 @@ - + + + + Auto-save modified files + + + true + + + + - - - - Auto-save modified files - - - true - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 20 - 20 - - - - @@ -254,34 +256,21 @@ - + + + + Automatically free resources of old documents that are not visible and not modified. They stay visible in the list of open documents. + + + Auto-suspend unmodified files + + + true + + + + - - - - Automatically free resources of old documents that are not visible and not modified. They stay visible in the list of open documents. - - - Auto-suspend unmodified files - - - true - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - @@ -363,15 +352,15 @@ - + + + + Maximum number of entries in "Recent Files": + + + + - - - - Maximum number of entries in "Recent Files": - - - @@ -393,11 +382,11 @@ - - - Ask for confirmation before exiting - - + + + Ask for confirmation before exiting + + @@ -436,7 +425,6 @@ externalFileBrowserEdit resetFileBrowserButton helpExternalFileBrowserButton - fileSystemCaseSensitivityChooser reloadBehavior autoSaveCheckBox autoSaveInterval