Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Michael Brasser
authored and
Qt by Nokia
committed
Dec 22, 2011
1 parent
5c22d95
commit 9e61464
Showing
4 changed files
with
258 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/auto/qtquick2/qquickmultipointtoucharea/data/basic.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import QtQuick 2.0 | ||
|
||
MultiPointTouchArea { | ||
width: 240 | ||
height: 320 | ||
|
||
minimumTouchPoints: 1 | ||
maximumTouchPoints: 4 | ||
touchPoints: [ | ||
TouchPoint { objectName: "point1" }, | ||
TouchPoint { objectName: "point2" }, | ||
TouchPoint { objectName: "point3" }, | ||
TouchPoint { objectName: "point4" } | ||
] | ||
} |
Oops, something went wrong.