aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-09-16 14:10:57 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-09-19 07:44:29 +0000
commitb9dc856eca10775c5e37eec653b9ba28ff14472b (patch)
treec34b1807ceda861153d462aa15c3172d29720aa4 /src/quick/items/qquickevents_p_p.h
parentb9a80c04b52a38ae2f24998e6b58a67bb20d8941 (diff)
QQuickEventPoint: add event property
When a signal emits a QQuickEventPoint to QML, it's sometimes useful to be able to access properties of the event: buttons, modifiers, device. Change-Id: I6230e31c5abb5e584858d3c0d45cf19199d84bf9 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index 132246f59b..31d6033f76 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -250,6 +250,7 @@ private:
class Q_QUICK_PRIVATE_EXPORT QQuickEventPoint : public QObject
{
Q_OBJECT
+ Q_PROPERTY(QQuickPointerEvent *event READ pointerEvent)
Q_PROPERTY(QPointF pos READ pos)
Q_PROPERTY(QPointF scenePos READ scenePos)
Q_PROPERTY(QPointF scenePressPos READ scenePressPos)