From 79415b76442ac6f8307ec0e10accec32383fabb9 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 4 May 2015 00:33:50 +0200 Subject: Add translations that are changeable during runtime --- languagedialog.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 languagedialog.h (limited to 'languagedialog.h') diff --git a/languagedialog.h b/languagedialog.h new file mode 100644 index 0000000..4dd0c61 --- /dev/null +++ b/languagedialog.h @@ -0,0 +1,38 @@ +#ifndef LANGUAGEDIALOG_H +#define LANGUAGEDIALOG_H + +#include +#include + +namespace Ui { +class LanguageDialog; +} + +class LanguageDialog : public QDialog +{ + Q_OBJECT + Q_PROPERTY(int language READ language WRITE setLanguage NOTIFY languageChanged) + +public: + explicit LanguageDialog(QWidget *parent = 0); + ~LanguageDialog(); + + int language() const; + +public slots: + void setLanguage(int arg); + +signals: + void languageChanged(int arg); + +private slots: + void on_radioButtonEnglish_clicked(); + + void on_radioButtonGerman_clicked(); + +private: + Ui::LanguageDialog *ui; + int m_language; +}; + +#endif // LANGUAGEDIALOG_H -- cgit v1.2.3-70-g09d2