diff options
author | Saturn&Eric <[email protected]> | 2021-12-13 18:46:23 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-13 18:46:23 +0000 |
commit | 5d8e24b7ce4620164c3268b4f1de43a30df19a86 (patch) | |
tree | 6defd5d68468a95de980752ccf2c4ef8a0753617 /src/ui/settings/SettingsGeneral.cpp | |
parent | Create SECURITY.md (diff) | |
parent | Update Translations & README. (diff) | |
download | GpgFrontend-5d8e24b7ce4620164c3268b4f1de43a30df19a86.tar.gz GpgFrontend-5d8e24b7ce4620164c3268b4f1de43a30df19a86.zip |
Merge pull request #32 from saturneric/developv2.0.2
v2.0.2-beta.2
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r-- | src/ui/settings/SettingsGeneral.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp index 4f9bfbae..978a7b5f 100644 --- a/src/ui/settings/SettingsGeneral.cpp +++ b/src/ui/settings/SettingsGeneral.cpp @@ -81,12 +81,15 @@ GeneralTab::GeneralTab(QWidget* parent) : QWidget(parent) { *****************************************/ auto* langBox = new QGroupBox(_("Language")); auto* langBoxLayout = new QVBoxLayout(); - langSelectBox = new QComboBox; + langSelectBox = new QComboBox(); + langSelectBox->setMaxVisibleItems(8); + langSelectBox->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); lang = SettingsDialog::listLanguages(); for (const auto& l : lang) { langSelectBox->addItem(l); } + langSelectBox->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength); langBoxLayout->addWidget(langSelectBox); langBoxLayout->addWidget(new QLabel( |