projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7d5d88a5bd4d008e43dc94c215b8635c84de6226
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
quick
/
qquickpincharea
/
data
/
transformedPinchArea.qml
1
import QtQuick 2.0
2
3
Rectangle {
4
width: 400
5
height: 400
6
7
Rectangle {
8
x: 100
9
y: 100
10
width: 200
11
height: 200
12
rotation: 45
13
14
Rectangle {
15
id: rect
16
scale: 0.5
17
color: "black"
18
anchors.fill: parent
19
20
PinchArea {
21
anchors.fill: parent
22
objectName: "pinchArea"
23
24
property bool pinching: false
25
26
pinch.target: rect
27
pinch.dragAxis: Drag.XandYAxis
28
onPinchStarted: pinching = true
29
onPinchFinished: pinching = false
30
}
31
}
32
}
33
}