aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/pointerhandlers/qquickpinchhandler/data
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-12-13 08:15:33 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2023-01-09 18:47:23 +0100
commit19b94b05f9fc277de948548672fb96c5b7d0ea85 (patch)
tree331ff5f8986fb739041297959dbb62856ac21e5d /tests/auto/quick/pointerhandlers/qquickpinchhandler/data
parentd77e96074ab8c97dc9c42e47d56ed540db728819 (diff)
Improve DragHandler tests for easier troubleshooting
- Sometimes you just need to see the touchpoints and centroids - Delay long enough to see them - Avoid QTRY_COMPARE when we're sure the event was already flushed - Fix indentation Pick-to: 6.5 Change-Id: I307963378c29fb285190657e7a0693888ad7c48c Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/quick/pointerhandlers/qquickpinchhandler/data')
-rw-r--r--tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml b/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml
index 3f1a2556cd..37f22c949a 100644
--- a/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml
+++ b/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/pinchproperties.qml
@@ -73,6 +73,14 @@ Rectangle {
whiteRect.pinchScale = pincharea.scale
//whiteRect.pointCount = pincharea.pointCount
}
- }
- }
- }
+ }
+ }
+
+ Rectangle {
+ color: "transparent"; border.color: "green"
+ width: 12; height: 12; radius: 6; border.width: 2
+ visible: pincharea.active
+ x: pincharea.centroid.scenePosition.x - radius
+ y: pincharea.centroid.scenePosition.y - radius
+ }
+}