aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsGeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r--src/ui/settings/SettingsGeneral.cpp5
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(