@@ -64,6 +64,9 @@ class UBUNTUGESTURESQML_EXPORT DirectionalDragArea : public QQuickItem {
64 // Whether a drag gesture is taking place
64 // Whether a drag gesture is taking place
65 Q_PROPERTY(bool dragging READ dragging NOTIFY draggingChanged)
65 Q_PROPERTY(bool dragging READ dragging NOTIFY draggingChanged)
67+ // Whether the drag area is pressed.
68+ Q_PROPERTY(bool pressed READ pressed NOTIFY pressedChanged)
67 // Whether a gesture should be Recognized as soon a touch lands on the area.
70 // Whether a gesture should be Recognized as soon a touch lands on the area.
68 // With this property enabled it will work pretty much like a MultiPointTouchArea,
71 // With this property enabled it will work pretty much like a MultiPointTouchArea,
69 // just with a different API.
72 // just with a different API.
@@ -92,6 +95,8 @@ public:
93 bool dragging() const;
96 bool dragging() const;
98+ bool pressed() const;
95 bool immediateRecognition() const;
100 bool immediateRecognition() const;
96 void setImmediateRecognition(bool enabled);
101 void setImmediateRecognition(bool enabled);
@@ -110,6 +115,7 @@ public:
110Q_SIGNALS:
115Q_SIGNALS:
111 void directionChanged(Direction::Type direction);
116 void directionChanged(Direction::Type direction);
112 void draggingChanged(bool value);
117 void draggingChanged(bool value);
118+ void pressedChanged(bool value);
113 void distanceChanged(qreal value);
119 void distanceChanged(qreal value);
114 void sceneDistanceChanged(qreal value);
120 void sceneDistanceChanged(qreal value);
115 void touchXChanged(qreal value);
121 void touchXChanged(qreal value);