diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-05 03:23:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-05 03:23:52 +0200 |
commit | c0165f8b48852a1aca782d606ba4f1ea48eee6ba (patch) | |
tree | 433441689808ca741889b078407bc49fade746de /proto-vjoystick/vjoystick.h | |
parent | eb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff) |
modules: now use i18n
Diffstat (limited to 'proto-vjoystick/vjoystick.h')
-rw-r--r-- | proto-vjoystick/vjoystick.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/proto-vjoystick/vjoystick.h b/proto-vjoystick/vjoystick.h index 72dde0f0..d859d8a9 100644 --- a/proto-vjoystick/vjoystick.h +++ b/proto-vjoystick/vjoystick.h @@ -38,15 +38,17 @@ public: LONG to_axis_value(unsigned axis_id, double val); }; -class vjoystick_proto : public IProtocol +class vjoystick_proto : public TR, public IProtocol { + Q_OBJECT + handle h; public: vjoystick_proto(); ~vjoystick_proto() override; module_status initialize() override; void pose( const double *headpose ) override; - QString game_name() override { return otr_tr("Virtual joystick"); } + QString game_name() override { return tr("Virtual joystick"); } private: }; @@ -64,7 +66,8 @@ private: class vjoystick_metadata : public Metadata { -public: - QString name() { return otr_tr("Joystick emulation -- vjoystick"); } + Q_OBJECT + + QString name() { return tr("Joystick emulation -- vjoystick"); } QIcon icon() { return QIcon(":/images/vjoystick.png"); } }; |