aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitem_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@theqtcompany.com>2015-06-01 17:49:37 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-08-15 15:21:19 +0000
commit54eab024611c6b9675ef6d48a15e7d69ed28df87 (patch)
treefaff31d691c3c0f66f0fc0261eac9afb96a4d20f /src/quick/items/qquickitem_p.h
parent076640e0e7ac31574c41bd6298a89b0cb5d7f9a7 (diff)
Introduce QQuickPointerHandler: base class for nested event handlers
They will be Tech Preview in 5.8, so they shouldn't be available unless you explicitly import them. Task-number: QTBUG-54824 Change-Id: I290854a4e2b76e2cdfef5c216c7fdeb47fbcd390 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquickitem_p.h')
-rw-r--r--src/quick/items/qquickitem_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickitem_p.h b/src/quick/items/qquickitem_p.h
index 9ea2712e18..94180309a3 100644
--- a/src/quick/items/qquickitem_p.h
+++ b/src/quick/items/qquickitem_p.h
@@ -85,6 +85,7 @@ class QQuickItemKeyFilter;
class QQuickLayoutMirroringAttached;
class QQuickEnterKeyAttached;
class QQuickScreenAttached;
+class QQuickPointerHandler;
class QQuickContents : public QQuickItemChangeListener
{
@@ -340,6 +341,7 @@ public:
QQuickLayoutMirroringAttached* layoutDirectionAttached;
QQuickEnterKeyAttached *enterKeyAttached;
QQuickItemKeyFilter *keyHandler;
+ QVector<QQuickPointerHandler *> pointerHandlers;
mutable QQuickItemLayer *layer;
#ifndef QT_NO_CURSOR
QCursor cursor;
@@ -555,6 +557,8 @@ public:
void deliverInputMethodEvent(QInputMethodEvent *);
#endif
+ virtual void handlePointerEvent(QQuickPointerEvent *);
+
bool isTransparentForPositioner() const;
void setTransparentForPositioner(bool trans);