mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
c622a5a009
- Adding an ifdef condition to discard Q_DECLARE_METATYPE(QLocale::Language) from compilation on Qt6
28 lines
520 B
C++
28 lines
520 B
C++
#ifndef LANGUAGESELECTDIALOG_H
|
|
#define LANGUAGESELECTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QLocale>
|
|
|
|
namespace Ui {
|
|
class LanguageSelectDialog;
|
|
}
|
|
|
|
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
|