mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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:
parent
d25341a032
commit
2e3de70401
21 changed files with 151 additions and 12 deletions
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
#include <QSettings>
|
||||
#include <QTemporaryFile>
|
||||
#include <QList>
|
||||
#include <QTranslator>
|
||||
|
||||
#include "ui_rbutilqtfrm.h"
|
||||
#include "httpget.h"
|
||||
|
|
@ -38,10 +40,12 @@ class RbUtilQt : public QMainWindow
|
|||
|
||||
public:
|
||||
RbUtilQt(QWidget *parent = 0);
|
||||
static QList<QTranslator*> translators;
|
||||
|
||||
private:
|
||||
Ui::RbUtilQtFrm ui;
|
||||
|
||||
void changeEvent(QEvent *e);
|
||||
void initDeviceNames(void);
|
||||
QString deviceName(QString);
|
||||
QString platform;
|
||||
|
|
@ -110,7 +114,7 @@ class RbUtilQt : public QMainWindow
|
|||
void installPortable(void);
|
||||
void updateInfo(void);
|
||||
void updateTabs(int);
|
||||
|
||||
|
||||
void checkUpdate(void);
|
||||
void downloadUpdateDone(bool errror);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue