diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2011-12-30 13:45:40 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-30 07:28:39 +0100 |
commit | 017a82c6702768aed68c34f319fa14da591f3df2 (patch) | |
tree | 8d3fe0e90ae40cf236769e25a440148c67225865 /tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml | |
parent | ae739f001626de8f1f04f3f325488978870b0369 (diff) |
touchUpdated should be called for release and cancel.
touchUpdated should be emitted whenever the touch is updated, even if the
update means there are no longer any valid touch points.
Change-Id: Iceac5a65094784928108acc764bbc1d5c2b9a08a
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml')
-rw-r--r-- | tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml b/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml index 3a6aa86a1c..85f8cd6f39 100644 --- a/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml +++ b/tests/auto/qtquick2/qquickmultipointtoucharea/data/signalTest.qml @@ -9,17 +9,22 @@ MultiPointTouchArea { touchPointUpdateCount = 0; touchPointReleaseCount = 0; touchCount = 0; + touchUpdatedHandled = false; } property int touchPointPressCount: 0 property int touchPointUpdateCount: 0 property int touchPointReleaseCount: 0 property int touchCount: 0 + property bool touchUpdatedHandled: false maximumTouchPoints: 5 onTouchPointsPressed: { touchPointPressCount = touchPoints.length } onTouchPointsUpdated: { touchPointUpdateCount = touchPoints.length } onTouchPointsReleased: { touchPointReleaseCount = touchPoints.length } - onTouchUpdated: { touchCount = touchPoints.length } + onTouchUpdated: { + touchCount = touchPoints.length + touchUpdatedHandled = true + } } |