blob: bedfe35470fd3f6b90b01e71e7e4437f08e3bcac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
import QtQuick 2.0
Flickable {
id: outer
objectName: "outerFlickable"
width: 400
height: 400
contentX: 50
contentY: 50
contentWidth: 500
contentHeight: 500
flickableDirection: inner.flickableDirection
Text { x: 100; y: 80; text: "dragging: outer " + outer.dragging + " inner " + inner.dragging }
// faster rebound to speed up test runs
rebound: Transition {
NumberAnimation {
properties: "x,y"
duration: 30
easing.type: Easing.OutBounce
}
}
Rectangle {
x: 100
y: 100
width: 300
height: 300
color: "yellow"
objectName: "yellowRect"
Text {
text: "...."
y: 250
}
Flickable {
id: inner
objectName: "innerFlickable"
anchors.fill: parent
contentX: 100
contentY: 100
contentWidth: 400
contentHeight: 400
boundsBehavior: Flickable.StopAtBounds
// faster rebound to speed up test runs
rebound: Transition {
NumberAnimation {
properties: "x,y"
duration: 30
easing.type: Easing.OutBounce
}
}
Rectangle {
anchors.fill: parent
anchors.margins: 100
objectName: "blueRect"
color: "blue"
}
MouseArea {
anchors.fill: parent
objectName: "mouseArea"
}
}
}
}
|