diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-10-02 14:30:05 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-10-02 14:30:05 +0000 |
commit | 2e3de70401379c044fdd3696e7cc6dc78aace808 (patch) | |
tree | 1e208b0dc8be1d0377f0c47533d3e839448473f6 /rbutil/rbutilqt/sysinfo.h | |
parent | d25341a032a19985af85c72b95964bef812971c3 (diff) | |
download | rockbox-2e3de70401379c044fdd3696e7cc6dc78aace808.tar.gz rockbox-2e3de70401379c044fdd3696e7cc6dc78aace808.zip |
Rockbox Utility: listen to translation change events.
When changing the language don't require a restart anymore. Instead listen to
the appropriate changeEvent and retranslate the UI. Designer generated UI files
already provide such a function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30633 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/sysinfo.h')
-rw-r--r-- | rbutil/rbutilqt/sysinfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/sysinfo.h b/rbutil/rbutilqt/sysinfo.h index 5195113643..e59c98df12 100644 --- a/rbutil/rbutilqt/sysinfo.h +++ b/rbutil/rbutilqt/sysinfo.h | |||
@@ -31,13 +31,14 @@ class Sysinfo : public QDialog | |||
31 | 31 | ||
32 | public: | 32 | public: |
33 | Sysinfo(QWidget *parent = 0); | 33 | Sysinfo(QWidget *parent = 0); |
34 | 34 | ||
35 | static QString getInfo(); | 35 | static QString getInfo(); |
36 | private: | 36 | private: |
37 | void changeEvent(QEvent *event); | ||
37 | Ui::SysinfoFrm ui; | 38 | Ui::SysinfoFrm ui; |
38 | 39 | ||
39 | private slots: | 40 | private slots: |
40 | void updateSysinfo(void); | 41 | void updateSysinfo(void); |
41 | 42 | ||
42 | }; | 43 | }; |
43 | 44 | ||