Commit a5b07dc3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15

parent 65522d13
......@@ -50,7 +50,11 @@ 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