aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml')
-rw-r--r--tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml b/tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml
index 53a2bf87f9..5db377011c 100644
--- a/tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml
+++ b/tests/auto/qtquick2/qquickmultipointtoucharea/data/inFlickable.qml
@@ -7,6 +7,9 @@ Flickable {
contentWidth: width
contentHeight: height * 2
+ property int cancelCount: 0
+ property int touchCount: 0
+
MultiPointTouchArea {
anchors.fill: parent
minimumTouchPoints: 2
@@ -20,6 +23,9 @@ Flickable {
TouchPoint { id: point1; objectName: "point1" },
TouchPoint { id: point2; objectName: "point2" }
]
+
+ onTouchPointsCanceled: cancelCount = touchPoints.length
+ onTouchUpdated: touchCount = touchPoints.length
}
}