Replace deprecated QComboBox::currentIndexChanged with currentTextChanged
authorJanne Koschinski <janne@kuschku.de>
Mon, 5 Aug 2019 11:44:45 +0000 (13:44 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Aug 2019 19:45:23 +0000 (21:45 +0200)
src/qtui/settingspages/appearancesettingspage.cpp

index 937b842..55d2acf 100644 (file)
@@ -53,7 +53,7 @@ AppearanceSettingsPage::AppearanceSettingsPage(QWidget* parent)
     initIconThemeComboBox();
 
     foreach (QComboBox* comboBox, findChildren<QComboBox*>()) {
     initIconThemeComboBox();
 
     foreach (QComboBox* comboBox, findChildren<QComboBox*>()) {
-        connect(comboBox, selectOverload<const QString&>(&QComboBox::currentIndexChanged), this, &AppearanceSettingsPage::widgetHasChanged);
+        connect(comboBox, &QComboBox::currentTextChanged, this, &AppearanceSettingsPage::widgetHasChanged);
     }
     foreach (QCheckBox* checkBox, findChildren<QCheckBox*>()) {
         connect(checkBox, &QAbstractButton::clicked, this, &AppearanceSettingsPage::widgetHasChanged);
     }
     foreach (QCheckBox* checkBox, findChildren<QCheckBox*>()) {
         connect(checkBox, &QAbstractButton::clicked, this, &AppearanceSettingsPage::widgetHasChanged);