aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/pointerhandlers/qquickpinchhandler/data
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-01-02 21:00:33 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2019-01-28 12:54:05 +0000
commit63bbaf837976bae45fdd2766da0ed4cc808cc0ac (patch)
tree8cab3b95e6c479d2c4969f72c8b2a628210843e9 /tests/auto/quick/pointerhandlers/qquickpinchhandler/data
parent84b47be6c79761e274454d437b73a1ac2c6789c9 (diff)
PinchHandler: Avoid unwanted translations when axes are disabled
Fixes: QTBUG-72822 Change-Id: I2773ba14fcb24a47fe2ec04860b4aa305a051453 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/pointerhandlers/qquickpinchhandler/data')
-rw-r--r--tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml b/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml
index 15775df1e7..3cabde5f59 100644
--- a/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml
+++ b/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml
@@ -33,7 +33,7 @@ Rectangle {
property real scale: -1.0
property int activeCount : 0
property int deactiveCount : 0
- width: 240; height: 320
+ width: 320; height: 320
color: "white"
Rectangle {
id: blackRect
@@ -45,6 +45,14 @@ Rectangle {
height: 100
opacity: (whiteRect.width-blackRect.x+whiteRect.height-blackRect.y-199)/200
Text { color: "white"; text: "opacity: " + blackRect.opacity + "\nscale: " + blackRect.scale}
+ Rectangle {
+ color: "red"
+ width: 6; height: 6; radius: 3
+ visible: pincharea.active
+ x: pincharea.centroid.position.x - radius
+ y: pincharea.centroid.position.y - radius
+ }
+
PinchHandler {
id: pincharea
objectName: "pinchHandler"