Built by Qt 4.8 fixed

This commit is contained in:
Arin Alexander 2018-12-11 20:04:44 +03:00
parent e4c8ec366b
commit 3b23470e2a

View File

@ -96,7 +96,11 @@ void SettingDialog::setDesignerLanguages(QList<QLocale::Language> languages, QLo
if (language != currentLanguage) if (language != currentLanguage)
ui->designerLanguage->addItem(QLocale::languageToString(language)); ui->designerLanguage->addItem(QLocale::languageToString(language));
} }
#ifdef HAVE_QT4
ui->designerLanguage->setCurrentIndex(ui->designerLanguage->findText(QLocale::languageToString(currentLanguage)));
#else
ui->designerLanguage->setCurrentText(QLocale::languageToString(currentLanguage)); ui->designerLanguage->setCurrentText(QLocale::languageToString(currentLanguage));
#endif
} }
} // namespace LimeReport } // namespace LimeReport