summaryrefslogtreecommitdiffstats
path: root/src/input/inputEvent.h
diff options
context:
space:
mode:
authorSebastien Braun2010-10-08 22:01:39 +0200
committerSebastien Braun2010-10-10 14:05:34 +0200
commit8ed8f90effab0876a8d8374d787d8c3b6214c531 (patch)
treecac3af119687e74bcda467ad8499263a7779e836 /src/input/inputEvent.h
parentIt is not necessary to auto-generate policyChain_autogen.h anymore (diff)
downloadpvs-8ed8f90effab0876a8d8374d787d8c3b6214c531.tar.gz
pvs-8ed8f90effab0876a8d8374d787d8c3b6214c531.tar.xz
pvs-8ed8f90effab0876a8d8374d787d8c3b6214c531.zip
Move the translations for pvsinput into the library where they belong.
Diffstat (limited to 'src/input/inputEvent.h')
-rw-r--r--src/input/inputEvent.h7
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