aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpincharea/data/transformedPinchArea.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickpincharea/data/transformedPinchArea.qml')
-rw-r--r--tests/auto/quick/qquickpincharea/data/transformedPinchArea.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickpincharea/data/transformedPinchArea.qml b/tests/auto/quick/qquickpincharea/data/transformedPinchArea.qml
new file mode 100644
index 0000000000..7d5d88a5bd
--- /dev/null
+++ b/tests/auto/quick/qquickpincharea/data/transformedPinchArea.qml
@@ -0,0 +1,33 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400
+ height: 400
+
+ Rectangle {
+ x: 100
+ y: 100
+ width: 200
+ height: 200
+ rotation: 45
+
+ Rectangle {
+ id: rect
+ scale: 0.5
+ color: "black"
+ anchors.fill: parent
+
+ PinchArea {
+ anchors.fill: parent
+ objectName: "pinchArea"
+
+ property bool pinching: false
+
+ pinch.target: rect
+ pinch.dragAxis: Drag.XandYAxis
+ onPinchStarted: pinching = true
+ onPinchFinished: pinching = false
+ }
+ }
+ }
+}