@@ -33,8 +33,8 @@ ApplicationWindow {
33
33
34
34
ParallelAnimation {
35
35
id: animMoveUp
36
- PropertyAnimation { target: animator .secondaryLoader ; properties: " y" ; to: - height; duration: appModel .AnimationDurationMs }
37
- PropertyAnimation { target: animator .mainLoader ; properties: " y" ; to: 0 ; duration: appModel .AnimationDurationMs }
36
+ PropertyAnimation { target: animator .secondaryLoader ; properties: " y" ; to: - height; duration: appModel .animationDurationMs }
37
+ PropertyAnimation { target: animator .mainLoader ; properties: " y" ; to: 0 ; duration: appModel .animationDurationMs }
38
38
onRunningChanged: {
39
39
if (! running) {
40
40
animator .endAnimation (animMoveUp);
@@ -44,8 +44,8 @@ ApplicationWindow {
44
44
45
45
ParallelAnimation {
46
46
id: animMoveRight
47
- PropertyAnimation { target: animator .secondaryLoader ; properties: " x" ; to: width; duration: appModel .AnimationDurationMs }
48
- PropertyAnimation { target: animator .mainLoader ; properties: " x" ; to: 0 ; duration: appModel .AnimationDurationMs }
47
+ PropertyAnimation { target: animator .secondaryLoader ; properties: " x" ; to: width; duration: appModel .animationDurationMs }
48
+ PropertyAnimation { target: animator .mainLoader ; properties: " x" ; to: 0 ; duration: appModel .animationDurationMs }
49
49
onRunningChanged: {
50
50
if (! running) {
51
51
animator .endAnimation (animMoveRight);
@@ -55,9 +55,9 @@ ApplicationWindow {
55
55
56
56
ParallelAnimation {
57
57
id: animMoveRightAndRotate
58
- PropertyAnimation { target: animator .secondaryLoader ; properties: " x" ; to: width; duration: appModel .AnimationDurationMs }
59
- PropertyAnimation { target: animator .mainLoader ; properties: " x" ; to: 0 ; duration: appModel .AnimationDurationMs }
60
- RotationAnimation { targets: [animator .secondaryLoader , animator .mainLoader ]; from: 0 ; to: 360 ; duration: appModel .AnimationDurationMs }
58
+ PropertyAnimation { target: animator .secondaryLoader ; properties: " x" ; to: width; duration: appModel .animationDurationMs }
59
+ PropertyAnimation { target: animator .mainLoader ; properties: " x" ; to: 0 ; duration: appModel .animationDurationMs }
60
+ RotationAnimation { targets: [animator .secondaryLoader , animator .mainLoader ]; from: 0 ; to: 360 ; duration: appModel .animationDurationMs }
61
61
onRunningChanged: {
62
62
if (! running) {
63
63
animator .endAnimation (animMoveRightAndRotate);
@@ -67,8 +67,8 @@ ApplicationWindow {
67
67
68
68
SequentialAnimation {
69
69
id: animFade
70
- NumberAnimation { target: animator .secondaryLoader ; properties: " opacity" ; to: 0 ; duration: appModel .AnimationDurationMs / 2 }
71
- NumberAnimation { target: animator .mainLoader ; properties: " opacity" ; to: 1 ; duration: appModel .AnimationDurationMs / 2 }
70
+ NumberAnimation { target: animator .secondaryLoader ; properties: " opacity" ; to: 0 ; duration: appModel .animationDurationMs / 2 }
71
+ NumberAnimation { target: animator .mainLoader ; properties: " opacity" ; to: 1 ; duration: appModel .animationDurationMs / 2 }
72
72
onRunningChanged: {
73
73
if (! running) {
74
74
animator .endAnimation (animFade);
@@ -78,8 +78,8 @@ ApplicationWindow {
78
78
79
79
SequentialAnimation {
80
80
id: animScale
81
- NumberAnimation { target: animator .secondaryLoader ; properties: " scale" ; to: 0 ; duration: appModel .AnimationDurationMs / 2 }
82
- NumberAnimation { target: animator .mainLoader ; properties: " scale" ; to: 1 ; duration: appModel .AnimationDurationMs / 2 }
81
+ NumberAnimation { target: animator .secondaryLoader ; properties: " scale" ; to: 0 ; duration: appModel .animationDurationMs / 2 }
82
+ NumberAnimation { target: animator .mainLoader ; properties: " scale" ; to: 1 ; duration: appModel .animationDurationMs / 2 }
83
83
onRunningChanged: {
84
84
if (! running) {
85
85
animator .endAnimation (animScale);
@@ -202,29 +202,29 @@ ApplicationWindow {
202
202
}
203
203
204
204
function updateViewData (){
205
- if (animator .mainLoader .source !== appModel .CurrentViewSwitchInfo . ViewResourceId ) {
206
- var switchType = appModel .CurrentViewSwitchInfo . SwitchTypeString ;
205
+ if (animator .mainLoader .source !== appModel .currentViewSwitchInfo . viewResourceId ) {
206
+ var switchType = appModel .currentViewSwitchInfo . switchTypeString ;
207
207
switch (switchType) {
208
208
case " Fade" :
209
- animator .switchViewFade (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
209
+ animator .switchViewFade (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
210
210
break ;
211
211
case " Vertical" :
212
- animator .switchViewVertical (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
212
+ animator .switchViewVertical (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
213
213
break ;
214
214
case " Horizontal" :
215
- animator .switchViewHorizontal (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
215
+ animator .switchViewHorizontal (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
216
216
break ;
217
217
case " RotateAndMove" :
218
- animator .switchViewRotateAndMove (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
218
+ animator .switchViewRotateAndMove (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
219
219
break ;
220
220
case " Scale" :
221
- animator .switchViewScale (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
221
+ animator .switchViewScale (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
222
222
break ;
223
223
case " None" :
224
- animator .switchViewHard (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
224
+ animator .switchViewHard (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
225
225
break ;
226
226
default :
227
- animator .switchViewHard (appModel .CurrentViewSwitchInfo . ViewResourceId , appModel .CurrentViewSwitchInfo . ViewModel );
227
+ animator .switchViewHard (appModel .currentViewSwitchInfo . viewResourceId , appModel .currentViewSwitchInfo . viewModel );
228
228
break ;
229
229
}
230
230
}
@@ -233,7 +233,7 @@ ApplicationWindow {
233
233
AppModel {
234
234
id: appModel
235
235
Component .onCompleted : {
236
- appModel .CurrentViewSwitchInfoChanged .connect (updateViewData)
236
+ appModel .currentViewSwitchInfoChanged .connect (updateViewData)
237
237
}
238
238
}
239
239
@@ -263,7 +263,7 @@ ApplicationWindow {
263
263
height: parent .height
264
264
width: parent .width
265
265
x: 0
266
- visible: appModel .ShowDebugInfo
266
+ visible: appModel .showDebugInfo
267
267
268
268
Rectangle {
269
269
id: viewName
@@ -277,7 +277,7 @@ ApplicationWindow {
277
277
Text {
278
278
anchors .centerIn : parent
279
279
id: txtViewName
280
- text: appModel .CurrentViewName
280
+ text: appModel .currentViewName
281
281
font .pointSize : 8
282
282
color: " white"
283
283
}
@@ -305,7 +305,7 @@ ApplicationWindow {
305
305
Text {
306
306
anchors .centerIn : parent
307
307
id: txtSwitchType
308
- text: appModel .CurrentSwitchTypeName
308
+ text: appModel .currentSwitchTypeName
309
309
font .pointSize : 8
310
310
color: " white"
311
311
}
@@ -333,7 +333,7 @@ ApplicationWindow {
333
333
Text {
334
334
anchors .centerIn : parent
335
335
id: txtMemoryUsage
336
- text: appModel .CurrentlyUsedMBString
336
+ text: appModel .currentlyUsedMBString
337
337
font .pointSize : 10
338
338
color: " white"
339
339
}
@@ -361,7 +361,7 @@ ApplicationWindow {
361
361
Text {
362
362
anchors .centerIn : parent
363
363
id: txtCountDown
364
- text: appModel .TimerValue
364
+ text: appModel .timerValue
365
365
font .pointSize : 16
366
366
color: " white"
367
367
}
0 commit comments