0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Qt4 build fixed

This commit is contained in:
Arin Alexander
2017-10-26 13:24:06 +04:00
parent 7ba2b1d5b3
commit 40bafebbbd
15 changed files with 95 additions and 16 deletions

View File

@@ -12,7 +12,12 @@ LanguageSelectDialog::LanguageSelectDialog(QWidget *parent) :
for (int i = 2; i<QLocale::LastLanguage; ++i){
ui->comboBox->addItem(QLocale::languageToString(static_cast<QLocale::Language>(i)),static_cast<QLocale::Language>(i));
}
#ifdef HAVE_QT5
ui->comboBox->setCurrentText("");
#endif
#ifdef HAVE_QT4
ui->comboBox->setEditText("");
#endif
}
LanguageSelectDialog::~LanguageSelectDialog()

View File

@@ -20,4 +20,6 @@ private:
Ui::LanguageSelectDialog *ui;
};
Q_DECLARE_METATYPE(QLocale::Language)
#endif // LANGUAGESELECTDIALOG_H