diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2014-05-07 19:01:19 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-14 14:05:46 +0200 |
commit | 528b720d8f25c851b5e73b4159c20d70a47aefc0 (patch) | |
tree | 07f895d250848be72811c5cea776d8bab239e340 /src/quick/items/qquickdrag_p.h | |
parent | cf7166e266e20d3da940b9f58d8631d23cc38482 (diff) |
Introduce MouseArea.drag.smoothed
[ChangeLog][QtQuick] Added property MouseArea.drag.smoothed for toggling
whether the drag target is moved to the current mouse position after a
drag operation has started.
Task-number: QTBUG-38539
Change-Id: I989b51bc83fc24c64b84ac8e9a50b352e674e8f8
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/quick/items/qquickdrag_p.h')
-rw-r--r-- | src/quick/items/qquickdrag_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/items/qquickdrag_p.h b/src/quick/items/qquickdrag_p.h index d9021d0f6d..eebe07469a 100644 --- a/src/quick/items/qquickdrag_p.h +++ b/src/quick/items/qquickdrag_p.h @@ -157,6 +157,7 @@ class Q_AUTOTEST_EXPORT QQuickDrag : public QObject Q_PROPERTY(qreal maximumY READ ymax WRITE setYmax NOTIFY maximumYChanged) Q_PROPERTY(bool active READ active NOTIFY activeChanged) Q_PROPERTY(bool filterChildren READ filterChildren WRITE setFilterChildren NOTIFY filterChildrenChanged) + Q_PROPERTY(bool smoothed READ smoothed WRITE setSmoothed NOTIFY smoothedChanged) // Note, threshold was added in QtQuick 2.2 but REVISION is not supported (or needed) for grouped // properties See QTBUG-33179 Q_PROPERTY(qreal threshold READ threshold WRITE setThreshold NOTIFY thresholdChanged RESET resetThreshold) @@ -185,6 +186,9 @@ public: qreal ymax() const; void setYmax(qreal); + bool smoothed() const; + void setSmoothed(bool smooth); + qreal threshold() const; void setThreshold(qreal); void resetThreshold(); @@ -206,6 +210,7 @@ Q_SIGNALS: void maximumYChanged(); void activeChanged(); void filterChildrenChanged(); + void smoothedChanged(); void thresholdChanged(); private: @@ -217,6 +222,7 @@ private: qreal _ymax; bool _active : 1; bool _filterChildren: 1; + bool _smoothed : 1; qreal _threshold; Q_DISABLE_COPY(QQuickDrag) }; |