Commit 107628d6 authored by Heiko Becker's avatar Heiko Becker 🏃
Browse files

Fix build with Qt >= 5.15.0-beta3

46ebd11e6 in qtbase removed the (int, QString) overload again and
un-deprecated the int overload.
parent 96e52486
......@@ -50,11 +50,7 @@ MainSettings::MainSettings(QWidget *parent) : QWidget(parent)
languageComboBox->setCurrentIndex(languageComboBox->findText(languageLocale.nativeLanguageName()));
// Connect after we set the current language from settings.
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(languageComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &MainSettings::widgetModified);
#else
connect(languageComboBox, static_cast<void (QComboBox::*)(int, const QString &)>(&QComboBox::currentIndexChanged) , this, &MainSettings::widgetModified);
#endif
#ifndef HAVE_SPEECH
kcfg_enablePronunciation->hide();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment