From eb169146ceb8167214e0ea4f41b530fe8b2cc6a1 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 8 Jul 2021 22:53:59 +0200 Subject: 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 --- tests/manual/pointer/pinchHandler.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/manual/pointer/pinchHandler.qml') 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) } -- cgit v1.2.3