diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-02-16 10:48:37 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-02-23 18:26:46 +0000 |
commit | 59c753bc75c7cfd4068fbbba3c25e1f54c46f4c0 (patch) | |
tree | 8998c236fe9ac9796a0b05f1501b2442b6d5c02a /src/quick/items/qquickevents_p_p.h | |
parent | e53510944169ac9f6753e0d14e1b24a24ff7bd9a (diff) |
QQuickWindowPrivate::deliverTouchCancelEvent: deliver to handlers too
Now that onGrabChanged() is unified, we have a means to tell the
handler when it loses its grab due to a touch event being canceled.
Change-Id: Idf3649242233ac7fb8c1fa80ad257ee14b861090
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index 455648a743..d046480f25 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -320,6 +320,9 @@ public: void setPassiveGrabbers(const QVector<QPointer <QQuickPointerHandler> > &grabbers) { m_passiveGrabbers = grabbers; } void clearPassiveGrabbers() { m_passiveGrabbers.clear(); } +protected: + void cancelExclusiveGrabImpl(QTouchEvent *cancelEvent = nullptr); + private: QVector2D estimatedVelocity() const; @@ -339,6 +342,8 @@ private: bool m_grabberIsHandler : 1; int m_reserved : 29; + friend class QQuickWindowPrivate; + Q_DISABLE_COPY(QQuickEventPoint) }; |