From 8ed8f90effab0876a8d8374d787d8c3b6214c531 Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Fri, 8 Oct 2010 22:01:39 +0200 Subject: Move the translations for pvsinput into the library where they belong. --- src/input/inputEvent.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/input/inputEvent.h') 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 +#include // for translation #include #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 -- cgit v1.2.3-55-g7522