summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@qt.io>2017-03-09 15:11:22 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2017-03-09 15:21:33 +0000
commit659317abee487c51837484208cc9e41061d3901f (patch)
tree7793f91ad592543a00658ed0503c8063ff8250b3 /tests/manual
parent018a76816789adf839f238957cddee13ef7de2e8 (diff)
Red frame indicates that the item has an active handler
Change-Id: I360063f3fe80eefb112b348d1b93f38d34416696 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/pointer/pinchHandler.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/manual/pointer/pinchHandler.qml b/tests/manual/pointer/pinchHandler.qml
index f317f361e2..7f2f9bd70f 100644
--- a/tests/manual/pointer/pinchHandler.qml
+++ b/tests/manual/pointer/pinchHandler.qml
@@ -71,6 +71,8 @@ Rectangle {
y: 200
rotation: 30
transformOrigin: Item.TopRight
+ border.width: pinch2.active ? 2 : 0
+ border.color: pinch2.active ? "red" : "transparent"
Text {
anchors.centerIn: parent
@@ -98,13 +100,18 @@ Rectangle {
height: 300
color: "wheat"
antialiasing: true
+ border.width: (dragHandler.active || pinch3.active) ? 2 : 0
+ border.color: border.width > 0 ? "red" : "transparent"
Text {
anchors.centerIn: parent
text: "Pinch with 3 fingers to scale, rotate and translate\nDrag with 1 finger"
+ getTransformationDetails(rect3, pinch3)
}
- DragHandler { objectName: "DragHandler" }
+ DragHandler {
+ id: dragHandler
+ objectName: "DragHandler"
+ }
PinchHandler {
id: pinch3