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:
@@ -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()
|
||||
|
@@ -20,4 +20,6 @@ private:
|
||||
Ui::LanguageSelectDialog *ui;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(QLocale::Language)
|
||||
|
||||
#endif // LANGUAGESELECTDIALOG_H
|
||||
|
Reference in New Issue
Block a user