blob: 048a2b285b055ad5246082b5576c8a31f02a6da0 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick 2.12
import QtQuick.Timeline 1.0
Item {
id: root
width: arcSegment1.width * 2 + root.borderOffest
height: arcSegment1.height * 2 + root.borderOffest
clip: true
property int borderOffest: 0 //was 5
property alias arcSegment4Source: arcSegment4.source
property alias arcSegment3Source: arcSegment3.source
property alias arcSegment2Source: arcSegment2.source
property alias arcSegment1Source: arcSegment1.source
property alias timelineCurrentFrame: timeline.currentFrame
property color maskColor: "#000000"
Image {
id: arcSegment4
anchors.left: parent.left
anchors.top: parent.top
source: "assets/bigArcSegment4.png"
transformOrigin: Item.BottomRight
rotation: 0
fillMode: Image.PreserveAspectFit
}
Rectangle {
id: mask3
width: arcSegment1.width + root.borderOffest
height: arcSegment1.height + root.borderOffest
color: root.maskColor
anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
}
Image {
id: arcSegment3
anchors.left: parent.left
anchors.bottom: parent.bottom
source: "assets/bigArcSegment3.png"
rotation: 0
transformOrigin: Item.TopRight
fillMode: Image.PreserveAspectFit
}
Rectangle {
id: mask2
width: arcSegment1.width + root.borderOffest
height: arcSegment1.height + root.borderOffest
color: root.maskColor
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.rightMargin: 0
}
Image {
id: arcSegment2
anchors.right: parent.right
anchors.bottom: parent.bottom
source: "assets/bigArcSegment2.png"
rotation: 0
transformOrigin: Item.TopLeft
fillMode: Image.PreserveAspectFit
}
Rectangle {
id: mask1
width: arcSegment1.width + root.borderOffest
height: arcSegment1.height + root.borderOffest
color: root.maskColor
anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: 0
}
Image {
id: arcSegment1
anchors.right: parent.right
anchors.top: parent.top
source: "assets/bigArcSegment1.png"
rotation: 0
transformOrigin: Item.BottomLeft
fillMode: Image.PreserveAspectFit
}
Rectangle {
id: mask4
width: arcSegment1.width + root.borderOffest
height: arcSegment1.height + root.borderOffest
opacity: 0
color: root.maskColor
anchors.left: parent.left
anchors.top: parent.top
anchors.topMargin: 0
}
Timeline {
id: timeline
endFrame: 1000
startFrame: 0
enabled: true
KeyframeGroup {
target: arcSegment1
property: "rotation"
Keyframe {
value: -90
frame: 0
}
Keyframe {
value: 0
frame: 250
}
}
KeyframeGroup {
target: arcSegment2
property: "rotation"
Keyframe {
value: -90
frame: 0
}
Keyframe {
value: -90
frame: 250 //was 252
}
Keyframe {
value: 0
frame: 500
}
}
KeyframeGroup {
target: arcSegment3
property: "rotation"
Keyframe {
value: -90
frame: 0
}
Keyframe {
value: -90
frame: 500
}
Keyframe {
value: 0
frame: 750
}
}
KeyframeGroup {
target: mask4
property: "opacity"
Keyframe {
value: 1
frame: 0
}
Keyframe {
value: 1
frame: 750
}
Keyframe {
value: 0
frame: 751
}
}
KeyframeGroup {
target: arcSegment4
property: "rotation"
Keyframe {
value: -90
frame: 0
}
Keyframe {
value: -90
frame: 750
}
Keyframe {
value: 0
frame: 1000
}
}
}
}
|