aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpinchhandler_p.h
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_p.h
parent97e2050f1c942da0b4d49df19b408c10a68e14b8 (diff)
PinchHandler: add centroidVelocity
Change-Id: I34cc9146155bded8311c1173e4b8d34d8b17b034 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpinchhandler_p.h')
-rw-r--r--src/quick/handlers/qquickpinchhandler_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpinchhandler_p.h b/src/quick/handlers/qquickpinchhandler_p.h
index d788e2cb36..6768196909 100644
--- a/src/quick/handlers/qquickpinchhandler_p.h
+++ b/src/quick/handlers/qquickpinchhandler_p.h
@@ -67,6 +67,7 @@ class Q_AUTOTEST_EXPORT QQuickPinchHandler : public QQuickMultiPointerHandler
Q_PROPERTY(qreal maximumRotation READ maximumRotation WRITE setMaximumRotation NOTIFY maximumRotationChanged)
Q_PROPERTY(PinchOrigin pinchOrigin READ pinchOrigin WRITE setPinchOrigin NOTIFY pinchOriginChanged)
Q_PROPERTY(QPointF centroid READ centroid NOTIFY updated)
+ Q_PROPERTY(QVector2D centroidVelocity READ centroidVelocity NOTIFY updated)
Q_PROPERTY(qreal scale READ scale NOTIFY updated)
Q_PROPERTY(qreal rotation READ rotation NOTIFY updated)
Q_PROPERTY(QPointF translation READ translation NOTIFY updated)
@@ -103,6 +104,7 @@ public:
qreal scale() const { return m_activeScale; }
qreal rotation() const { return m_activeRotation; }
QPointF centroid() const { return m_centroid; }
+ QVector2D centroidVelocity() const { return m_centroidVelocity; }
qreal minimumX() const { return m_minimumX; }
void setMinimumX(qreal minX);
@@ -136,6 +138,7 @@ private:
qreal m_activeRotation;
QPointF m_activeTranslation;
QPointF m_centroid;
+ QVector2D m_centroidVelocity;
qreal m_minimumScale;
qreal m_maximumScale;