diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-11-22 17:34:53 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-11-24 13:03:17 +0000 |
commit | 8a98f14b55ae4e0d672d5c162beac7cfdd48e11d (patch) | |
tree | c7ebbf1c09b64b862a69c4b1c44ecb1c04828944 /src/quick/handlers/qquickpinchhandler.cpp | |
parent | 29cf234ce28e4fcf26b60e906e1f4ae23eab5f54 (diff) |
PinchHandler: accept all points involved in the pinch
This is one part of preventing sibling handlers (such as DragHandler)
from stealing the grab: mark the points accepted so that
allPointsAccepted() will be true, so that delivery stops.
Change-Id: Icb650599254dccd949de90b4b7fc44969f6a7c62
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpinchhandler.cpp')
-rw-r--r-- | src/quick/handlers/qquickpinchhandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpinchhandler.cpp b/src/quick/handlers/qquickpinchhandler.cpp index c6294092e6..4fb0547140 100644 --- a/src/quick/handlers/qquickpinchhandler.cpp +++ b/src/quick/handlers/qquickpinchhandler.cpp @@ -285,6 +285,7 @@ void QQuickPinchHandler::handlePointerEventImpl(QQuickPointerEvent *event) m_translation = QPointF(mat.constData()[12], mat.constData()[13]); } + acceptPoints(m_currentPoints); emit updated(); } |