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-libevdev/ftnoir_protocol_libevdev.h | |
parent | eb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff) |
modules: now use i18n
Diffstat (limited to 'proto-libevdev/ftnoir_protocol_libevdev.h')
-rw-r--r-- | proto-libevdev/ftnoir_protocol_libevdev.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.h b/proto-libevdev/ftnoir_protocol_libevdev.h index 7cf59053..4c220df4 100644 --- a/proto-libevdev/ftnoir_protocol_libevdev.h +++ b/proto-libevdev/ftnoir_protocol_libevdev.h @@ -14,8 +14,10 @@ #include <QMessageBox> -class evdev : public IProtocol +class evdev : public TR, public IProtocol { + Q_OBJECT + public: evdev(); ~evdev() override; @@ -23,8 +25,10 @@ public: return dev != NULL; } void pose(const double *headpose); - QString game_name() { - return _("Virtual joystick for Linux"); + + QString game_name() + { + return tr("Virtual joystick for Linux"); } module_status initialize() override; @@ -37,6 +41,7 @@ private: class LibevdevControls: public IProtocolDialog { Q_OBJECT + public: LibevdevControls(); void register_protocol(IProtocol *) {} @@ -53,7 +58,8 @@ private slots: class evdevDll : public Metadata { -public: - QString name() { return _("libevdev joystick receiver"); } + Q_OBJECT + + QString name() { return tr("libevdev joystick receiver"); } QIcon icon() { return QIcon(":/images/linux.png"); } }; |