diff --git a/cockatrice/src/dialogs/dlg_settings.cpp b/cockatrice/src/dialogs/dlg_settings.cpp index 1c88874fd..5f41c7f5f 100644 --- a/cockatrice/src/dialogs/dlg_settings.cpp +++ b/cockatrice/src/dialogs/dlg_settings.cpp @@ -74,7 +74,8 @@ GeneralSettingsPage::GeneralSettingsPage() advertiseTranslationPageLabel.setTextInteractionFlags(Qt::LinksAccessibleByMouse); advertiseTranslationPageLabel.setOpenExternalLinks(true); - connect(&languageBox, &QComboBox::currentIndexChanged, this, &GeneralSettingsPage::languageBoxChanged); + connect(&languageBox, qOverload(&QComboBox::currentIndexChanged), this, + &GeneralSettingsPage::languageBoxChanged); connect(&startupUpdateCheckCheckBox, &QCheckBox::QT_STATE_CHANGED, &settings, &SettingsCache::setCheckUpdatesOnStartup); connect(&updateNotificationCheckBox, &QCheckBox::QT_STATE_CHANGED, &settings, &SettingsCache::setNotifyAboutUpdate); @@ -194,7 +195,7 @@ GeneralSettingsPage::GeneralSettingsPage() GeneralSettingsPage::retranslateUi(); // connect the ReleaseChannel combo box only after the entries are inserted in retranslateUi - connect(&updateReleaseChannelBox, &QComboBox::currentIndexChanged, &settings, + connect(&updateReleaseChannelBox, qOverload(&QComboBox::currentIndexChanged), &settings, &SettingsCache::setUpdateReleaseChannelIndex); updateReleaseChannelBox.setCurrentIndex(settings.getUpdateReleaseChannelIndex()); @@ -365,7 +366,7 @@ AppearanceSettingsPage::AppearanceSettingsPage() themeBox.setCurrentIndex(i); } - connect(&themeBox, &QComboBox::currentIndexChanged, this, &AppearanceSettingsPage::themeBoxChanged); + connect(&themeBox, qOverload(&QComboBox::currentIndexChanged), this, &AppearanceSettingsPage::themeBoxChanged); connect(&openThemeButton, &QPushButton::clicked, this, &AppearanceSettingsPage::openThemeLocation); auto *themeGrid = new QGridLayout; @@ -1351,7 +1352,7 @@ SoundSettingsPage::SoundSettingsPage() themeBox.setCurrentIndex(i); } - connect(&themeBox, &QComboBox::currentIndexChanged, this, &SoundSettingsPage::themeBoxChanged); + connect(&themeBox, qOverload(&QComboBox::currentIndexChanged), this, &SoundSettingsPage::themeBoxChanged); connect(&soundTestButton, &QPushButton::clicked, soundEngine, &SoundEngine::testSound); masterVolumeSlider = new QSlider(Qt::Horizontal);