2017-08-16 01:18:56 +03:00
|
|
|
#ifndef LANGUAGESELECTDIALOG_H
|
|
|
|
#define LANGUAGESELECTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QLocale>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LanguageSelectDialog;
|
|
|
|
}
|
|
|
|
|
2022-05-20 14:28:08 +03:00
|
|
|
class LanguageSelectDialog : public QDialog {
|
2017-08-16 01:18:56 +03:00
|
|
|
Q_OBJECT
|
|
|
|
|
2022-05-20 14:28:08 +03:00
|
|
|
public:
|
2017-08-16 01:18:56 +03:00
|
|
|
explicit LanguageSelectDialog(QWidget *parent = 0);
|
|
|
|
~LanguageSelectDialog();
|
|
|
|
QLocale::Language getSelectedLanguage();
|
2022-05-20 14:28:08 +03:00
|
|
|
|
|
|
|
private:
|
2017-08-16 01:18:56 +03:00
|
|
|
Ui::LanguageSelectDialog *ui;
|
|
|
|
};
|
|
|
|
|
2022-05-20 14:28:08 +03:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
2017-10-26 12:24:06 +03:00
|
|
|
Q_DECLARE_METATYPE(QLocale::Language)
|
2022-05-20 14:28:08 +03:00
|
|
|
#endif
|
2017-10-26 12:24:06 +03:00
|
|
|
|
2017-08-16 01:18:56 +03:00
|
|
|
#endif // LANGUAGESELECTDIALOG_H
|