diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2017-03-09 15:11:22 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-03-09 15:21:33 +0000 |
commit | 659317abee487c51837484208cc9e41061d3901f (patch) | |
tree | 7793f91ad592543a00658ed0503c8063ff8250b3 /tests/manual/pointer | |
parent | 018a76816789adf839f238957cddee13ef7de2e8 (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/pointer')
-rw-r--r-- | tests/manual/pointer/pinchHandler.qml | 9 |
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 |