diff options
Diffstat (limited to 'src/input/inputEvent.h')
| -rw-r--r-- | src/input/inputEvent.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/inputEvent.h b/src/input/inputEvent.h index 2f557ce..82b059c 100644 --- a/src/input/inputEvent.h +++ b/src/input/inputEvent.h @@ -18,6 +18,7 @@ #define INPUTEVENT_H_ #include <cassert> +#include <QCoreApplication> // for translation #include <QString> #ifndef __linux @@ -211,6 +212,12 @@ public: { return value_ & MODIFIER_MASK; } + + // We want to enable InputEvent as a translation context, so we fake the tr method: + static QString tr(const char* string) + { + return QCoreApplication::translate("InputEvent", string); + } }; struct SpecialInputEventDescription |
