diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-04 00:33:50 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-04 00:33:50 +0200 |
| commit | 79415b76442ac6f8307ec0e10accec32383fabb9 (patch) | |
| tree | b393ba96a348bec7eb2ef9887a039366f500fc09 /languagedialog.h | |
| parent | b60bb2ed272972847cb533be2e86bd2d7e565918 (diff) | |
| download | GUI_SS2015-79415b76442ac6f8307ec0e10accec32383fabb9.tar.gz GUI_SS2015-79415b76442ac6f8307ec0e10accec32383fabb9.zip | |
Add translations that are changeable during runtime
Diffstat (limited to 'languagedialog.h')
| -rw-r--r-- | languagedialog.h | 38 |
1 files changed, 38 insertions, 0 deletions
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 <QDialog> +#include <QTranslator> + +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 |
