diff options
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 3 |
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; }; |