aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpinchhandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-03-31 23:42:04 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-04-20 18:37:02 +0000
commitc2d6f267a74f7fdd9422af88e35ade280cf0a3d3 (patch)
treed671f3d2752c4600785651ca53e227c40999f2a5 /src/quick/handlers/qquickpinchhandler.cpp
parent97e2050f1c942da0b4d49df19b408c10a68e14b8 (diff)
PinchHandler: add centroidVelocity
Change-Id: I34cc9146155bded8311c1173e4b8d34d8b17b034 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpinchhandler.cpp')
-rw-r--r--src/quick/handlers/qquickpinchhandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpinchhandler.cpp b/src/quick/handlers/qquickpinchhandler.cpp
index 5469df206c..67d32cdb18 100644
--- a/src/quick/handlers/qquickpinchhandler.cpp
+++ b/src/quick/handlers/qquickpinchhandler.cpp
@@ -242,6 +242,7 @@ void QQuickPinchHandler::handlePointerEventImpl(QQuickPointerEvent *event)
}
// TODO check m_pinchOrigin: right now it acts like it's set to PinchCenter
m_centroid = touchPointCentroid();
+ m_centroidVelocity = touchPointCentroidVelocity();
QRectF bounds(m_minimumX, m_minimumY, m_maximumX, m_maximumY);
// avoid mapping the minima and maxima, as they might have unmappable values
// such as -inf/+inf. Because of this we perform the bounding to min/max in local coords.