- Adding an ifdef condition to discard Q_DECLARE_METATYPE(QLocale::Language) from compilation on Qt6
This commit is contained in:
Youssef BEDDAD 2022-05-20 12:28:08 +01:00
parent e34023931f
commit c622a5a009

View File

@ -8,18 +8,20 @@ namespace Ui {
class LanguageSelectDialog;
}
class LanguageSelectDialog : public QDialog
{
class LanguageSelectDialog : public QDialog {
Q_OBJECT
public:
explicit LanguageSelectDialog(QWidget *parent = 0);
~LanguageSelectDialog();
QLocale::Language getSelectedLanguage();
private:
Ui::LanguageSelectDialog *ui;
};
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Q_DECLARE_METATYPE(QLocale::Language)
#endif
#endif // LANGUAGESELECTDIALOG_H