aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsGeneral.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-02-02 06:47:24 +0000
committerSaturneric <[email protected]>2022-02-02 06:47:24 +0000
commit3780c1baab8562e15eade1c1be25ccebd0e70814 (patch)
tree0f7984b0725830cad6492bd91a4d6adaf58601c2 /src/ui/settings/SettingsGeneral.cpp
parent<doc>(project): Separate user manual from development documentation. (diff)
downloadGpgFrontend-3780c1baab8562e15eade1c1be25ccebd0e70814.tar.gz
GpgFrontend-3780c1baab8562e15eade1c1be25ccebd0e70814.zip
<refactor, fix>(ui): Repair and tidy the signal and slot docking
1. Use more modern ways. 2. Repair partial docking.
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r--src/ui/settings/SettingsGeneral.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp
index 5b697fa0..2b5bcfcf 100644
--- a/src/ui/settings/SettingsGeneral.cpp
+++ b/src/ui/settings/SettingsGeneral.cpp
@@ -66,8 +66,8 @@ GeneralTab::GeneralTab(QWidget* parent)
for (const auto& l : lang_) {
ui_->langSelectBox->addItem(l);
}
- connect(ui_->langSelectBox, SIGNAL(currentIndexChanged(int)), this,
- SLOT(slot_language_changed()));
+ connect(ui_->langSelectBox, qOverload<int>(&QComboBox::currentIndexChanged),
+ this, &GeneralTab::slot_language_changed);
#endif
SetSettings();