aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-05-30 17:06:58 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-01 18:02:33 +0200
commitea045d82a3a837f83fec82462feebf2bc262f9d9 (patch)
tree5236ec962b89f3fdc883fc2fa813bdbe9317ba81 /src/quick/items/qquickevents_p_p.h
parent101a5185138f4eb4d1ed0e69065d8e4c30a7fff7 (diff)
Add bool QQuickKeyEvent::matches(QKeySequence::StandardKey)
Change-Id: Iaa8392c1b113856fa80cd2507f8640050eb9bec2 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index 6f1b152ad3..f14e035857 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -59,6 +59,7 @@
#include <QtCore/qobject.h>
#include <QtGui/qvector2d.h>
#include <QtGui/qevent.h>
+#include <QtGui/qkeysequence.h>
QT_BEGIN_NAMESPACE
@@ -89,6 +90,8 @@ public:
bool isAccepted() { return event.isAccepted(); }
void setAccepted(bool accepted) { event.setAccepted(accepted); }
+ Q_REVISION(2) Q_INVOKABLE bool matches(QKeySequence::StandardKey key) const { return event.matches(key); }
+
private:
QKeyEvent event;
};