aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsGeneral.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-13 16:59:04 +0000
committerSaturneric <[email protected]>2021-12-13 17:59:24 +0000
commitb43e37688757ab5f3f734e7392a37513f2692c41 (patch)
tree57bed013e208f37d8ca16eb5b290f9c11007b835 /src/ui/settings/SettingsGeneral.cpp
parentImprove UI & Fixed. (diff)
downloadGpgFrontend-b43e37688757ab5f3f734e7392a37513f2692c41.tar.gz
GpgFrontend-b43e37688757ab5f3f734e7392a37513f2692c41.zip
Update Translations & README.
Diffstat (limited to '')
-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(