1
/** This file is part of Qt Media Hub**
3
Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).*
6
Contact: Nokia Corporation qmh-development@qt-project.org
8
You may use this file under the terms of the BSD license
11
Redistribution and use in source and binary forms, with or
12
without modification, are permitted provided that the following
14
* Redistributions of source code must retain the above copyright
15
notice, this list of conditions and the following disclaimer.
17
* Redistributions in binary form must reproduce the above copyright
18
notice, this list of conditions and the following disclaimer in the
19
documentation and/or other materials provided with the distribution.
21
* Neither the name of Nokia Corporation and its Subsidiary(-ies)
22
nor the names of its contributors may be used to endorse or promote
23
products derived from this software without specific prior
26
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/
50
y: translateY(300)// - yOffset
59
finalY: translateY(-480)
67
finalY: translateY(-494)
73
x: isDay ? translateX(198) : translateX(220)
76
itemY: isDay ? 176 : 180
77
height: isDay ? 460 : 440
78
finalY: isDay ? translateY(-255) : translateY(-205)
79
itemImage: isDay ? folder + "cold_sun.png" : folder + "moon.png"
80
lineImage: isDay ? folder + "cold_sun_line.png" : folder + "moon_line.png"
87
finalY: translateY(-350)
95
finalY: translateY(-345)
103
finalY: translateY(-310)
109
PropertyChanges { target: sun; y: sun.finalY; }
110
PropertyChanges { target: cloud1; y: cloud1.finalY; }
111
PropertyChanges { target: cloud2; y: cloud2.finalY; }
112
PropertyChanges { target: cloud3; y: cloud3.finalY; }
113
PropertyChanges { target: cloud4; y: cloud4.finalY; }
114
PropertyChanges { target: cloud5; y: cloud5.finalY; }
115
PropertyChanges { target: rain; visible: true; }
118
transitions: Transition {
119
SequentialAnimation {
121
NumberAnimation { target: cloud1; properties: "y";
122
easing.type: "OutBack"; duration: 500 }
124
SequentialAnimation {
125
PauseAnimation { duration: 200 }
126
NumberAnimation { target: cloud3; properties: "y";
127
easing.type: "OutBack"; duration: 500 }
130
SequentialAnimation {
131
PauseAnimation { duration: 400 }
132
NumberAnimation { target: cloud2; properties: "y";
133
easing.type: "OutBack"; duration: 500 }
136
SequentialAnimation {
137
PauseAnimation { duration: 600 }
138
NumberAnimation { target: cloud4; properties: "y";
139
easing.type: "OutBack"; duration: 500 }
142
SequentialAnimation {
143
PauseAnimation { duration: 800 }
144
NumberAnimation { target: cloud5; properties: "y";
145
easing.type: "OutBack"; duration: 500 }
149
NumberAnimation { target: sun; properties: "y";
150
easing.type: "OutBack"; duration: 500 }
152
PauseAnimation { duration: 100 }
154
NumberAnimation { target: rain; properties: "visible"; duration: 0 }
158
onPresent: { root.state = "final"; }