aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer/pinchHandler.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-07-08 22:53:59 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2021-07-09 13:17:06 +0200
commiteb169146ceb8167214e0ea4f41b530fe8b2cc6a1 (patch)
tree8904aab96475797d65cee463177e4cd1beb6eef7 /tests/manual/pointer/pinchHandler.qml
parenta04d98787dc5c816569a6eecce695a8d80257c05 (diff)
Respect PinchHandler min/maximumPointCount props with native gestures
QNativeGestureEvent::fingerCount() is new in 6.2, and on Wayland touchpads it's actually populated, so we can now do this. Fixes: QTBUG-95070 Pick-to: 6.2 Change-Id: Ia365ff34003be8ae8f7f860c195f08b66f6c4a4e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/manual/pointer/pinchHandler.qml')
-rw-r--r--tests/manual/pointer/pinchHandler.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/pointer/pinchHandler.qml b/tests/manual/pointer/pinchHandler.qml
index 93169da60a..e7f4530c4c 100644
--- a/tests/manual/pointer/pinchHandler.qml
+++ b/tests/manual/pointer/pinchHandler.qml
@@ -65,10 +65,11 @@ Rectangle {
minimumScale: 0.5
maximumScale: 3
minimumPointCount: 3
+ maximumPointCount: 6 // mutants are allowed; using both hands is not normal for a pinch gesture, but we can't tell
}
Text {
- text: "Pinch with 3 fingers to scale, rotate and translate"
+ text: "Pinch with 3 or more fingers to scale, rotate and translate"
+ getTransformationDetails(parent, grandparentPinch)
}