summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/systrace.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-02 14:30:05 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-02 14:30:05 +0000
commit2e3de70401379c044fdd3696e7cc6dc78aace808 (patch)
tree1e208b0dc8be1d0377f0c47533d3e839448473f6 /rbutil/rbutilqt/systrace.h
parentd25341a032a19985af85c72b95964bef812971c3 (diff)
downloadrockbox-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/systrace.h')
-rw-r--r--rbutil/rbutilqt/systrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/systrace.h b/rbutil/rbutilqt/systrace.h
index f15e33c149..71aed0bd48 100644
--- a/rbutil/rbutilqt/systrace.h
+++ b/rbutil/rbutilqt/systrace.h
@@ -35,6 +35,7 @@ class SysTrace : public QDialog
35 static void save(QString filename = ""); 35 static void save(QString filename = "");
36 private: 36 private:
37 static void flush(void); 37 static void flush(void);
38 void changeEvent(QEvent *event);
38 Ui::SysTraceFrm ui; 39 Ui::SysTraceFrm ui;
39 static QString debugbuffer; 40 static QString debugbuffer;
40 static QString lastmessage; 41 static QString lastmessage;
@@ -44,7 +45,7 @@ class SysTrace : public QDialog
44 void saveCurrentTrace(void); 45 void saveCurrentTrace(void);
45 void savePreviousTrace(void); 46 void savePreviousTrace(void);
46 void refresh(void); 47 void refresh(void);
47 48
48}; 49};
49 50
50#endif 51#endif