diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2016-07-22 14:59:04 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-12-28 18:26:56 +0000 |
commit | c4c4e9ddc1f659abd3abb57ba04b8524e2224bfe (patch) | |
tree | 8b518baff9393fae92302dd56ea77df992b60a1c /src/quick/items/qquickevents_p_p.h | |
parent | ae9e6d4ad7b7a67e90a16af432b55de5b3d7dbb5 (diff) |
Estimate the velocity of a point
Change-Id: I45cbfc69a533ea9e295825aef23edc70c88fa2c6
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r-- | src/quick/items/qquickevents_p_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index 33574deb9d..d378388184 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -259,6 +259,7 @@ class Q_QUICK_PRIVATE_EXPORT QQuickEventPoint : public QObject Q_PROPERTY(State state READ state) Q_PROPERTY(quint64 pointId READ pointId) Q_PROPERTY(qreal timeHeld READ timeHeld) + Q_PROPERTY(QVector2D velocity READ velocity) Q_PROPERTY(bool accepted READ isAccepted WRITE setAccepted) Q_PROPERTY(QObject *grabber READ grabber WRITE setGrabber) @@ -303,6 +304,9 @@ public: Q_INVOKABLE void cancelGrab(); private: + QVector2D estimatedVelocity() const; + +private: QPointF m_pos; QPointF m_scenePos; QPointF m_scenePressPos; |