Add a pressed property to TouchPoint.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 22 Dec 2011 00:53:25 +0000 (10:53 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Dec 2011 23:16:26 +0000 (00:16 +0100)
commit9e61464c9026c4b766e05ea8c784f8e6a615adba
tree97592742db7067472bbcb2063b1c8831ef2a7037
parent5c22d958fb7cd5e9729518a6fdd0a9a18a9a7481
Add a pressed property to TouchPoint.

Remove the valid property, and replace it with pressed. The semantics
have changed slightly for a release -- pressed will immediately become
false, whereas valid remained true until the next touch event.

Also make sure touch information is correctly updated on release.

Change-Id: Ic61e1b6884c67f19100a6f8fc218b8b05b291ff0
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/items/qquickmultipointtoucharea.cpp
src/quick/items/qquickmultipointtoucharea_p.h
tests/auto/qtquick2/qquickmultipointtoucharea/data/basic.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp