aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml')
-rw-r--r--tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml b/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml
new file mode 100644
index 0000000000..3a6aa86a1c
--- /dev/null
+++ b/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml
@@ -0,0 +1,25 @@
+import QtQuick 2.0
+
+MultiPointTouchArea {
+ width: 240
+ height: 320
+
+ function clearCounts() {
+ touchPointPressCount = 0;
+ touchPointUpdateCount = 0;
+ touchPointReleaseCount = 0;
+ touchCount = 0;
+ }
+
+ property int touchPointPressCount: 0
+ property int touchPointUpdateCount: 0
+ property int touchPointReleaseCount: 0
+ property int touchCount: 0
+
+ maximumTouchPoints: 5
+
+ onTouchPointsPressed: { touchPointPressCount = touchPoints.length }
+ onTouchPointsUpdated: { touchPointUpdateCount = touchPoints.length }
+ onTouchPointsReleased: { touchPointReleaseCount = touchPoints.length }
+ onTouchUpdated: { touchCount = touchPoints.length }
+}