aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerhandler_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-12-08 19:16:47 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2016-12-09 22:49:01 +0000
commit492ed4ae2615729b43d7d85624ab9754f6e0106e (patch)
tree7b8c188d674748637b4ec8dc5bb148df47fe3a54 /src/quick/handlers/qquickpointerhandler_p.h
parentc363b0324ac7a19e8c30c075ce001da0a0a8b6bd (diff)
add virtual QQuickPointerHandler::onGrabChanged and signal grabChanged
Some handlers will need to react to gaining or losing a grab, in both C++ and QML. Change-Id: I25b94800e3eaeabb0782315c679813ec735d4d51 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpointerhandler_p.h')
-rw-r--r--src/quick/handlers/qquickpointerhandler_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpointerhandler_p.h b/src/quick/handlers/qquickpointerhandler_p.h
index 95900c50f0..9595897d72 100644
--- a/src/quick/handlers/qquickpointerhandler_p.h
+++ b/src/quick/handlers/qquickpointerhandler_p.h
@@ -89,6 +89,7 @@ Q_SIGNALS:
void enabledChanged();
void activeChanged();
void targetChanged();
+ void grabChanged(QQuickEventPoint *point);
void canceled(QQuickEventPoint *point);
protected:
@@ -97,6 +98,7 @@ protected:
virtual void handlePointerEventImpl(QQuickPointerEvent *event);
void setActive(bool active);
virtual void onActiveChanged() { }
+ virtual void onGrabChanged(QQuickEventPoint *) { }
void setGrab(QQuickEventPoint *point, bool grab);
virtual void handleGrabCancel(QQuickEventPoint *point);
QPointF eventPos(const QQuickEventPoint *point) const;