2017-08-16 01:18:56 +03:00
|
|
|
#ifndef LANGUAGESELECTDIALOG_H
|
|
|
|
#define LANGUAGESELECTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QLocale>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LanguageSelectDialog;
|
|
|
|
}
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class LanguageSelectDialog: public QDialog {
|
2017-08-16 01:18:56 +03:00
|
|
|
Q_OBJECT
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
public:
|
|
|
|
explicit LanguageSelectDialog(QWidget* parent = 0);
|
2017-08-16 01:18:56 +03:00
|
|
|
~LanguageSelectDialog();
|
|
|
|
QLocale::Language getSelectedLanguage();
|
2022-05-20 14:28:08 +03:00
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
private:
|
|
|
|
Ui::LanguageSelectDialog* ui;
|
2017-08-16 01:18:56 +03:00
|
|
|
};
|
|
|
|
|
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
|