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
This commit is contained in:
Dominik Riebeling 2011-10-02 14:30:05 +00:00
parent d25341a032
commit 2e3de70401
21 changed files with 151 additions and 12 deletions

View file

@ -33,7 +33,7 @@ class InstallTalkWindow : public QDialog
Q_OBJECT
public:
InstallTalkWindow(QWidget *parent = 0);
public slots:
void accept(void);
void change(void);
@ -46,6 +46,7 @@ class InstallTalkWindow : public QDialog
void settingsUpdated(void);
private:
void changeEvent(QEvent *event);
TalkFileCreator* talkcreator;
Ui::InstallTalkFrm ui;
ProgressLoggerGui* logger;