diff options
Diffstat (limited to 'weather-qml/PartlyCloudy.qml')
-rw-r--r-- | weather-qml/PartlyCloudy.qml | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/weather-qml/PartlyCloudy.qml b/weather-qml/PartlyCloudy.qml deleted file mode 100644 index 39a01a8..0000000 --- a/weather-qml/PartlyCloudy.qml +++ /dev/null @@ -1,75 +0,0 @@ -import Qt 4.6 - -ForecastView { - id: root - - SmallCloud { - id: cloud3 - x: scaledX(396) - y: scaledY(-800) - finalY: scaledY(-446); - type: isDay ? "cloud" : "cloud_rain" - } - - HungItem { - id: sun - x: isDay ? scaledX(120) : scaledX(220) - y: scaledY(-800) - itemX: 0 - itemY: isDay ? 200 : 180 - height: isDay ? 500 : 440 - finalY: isDay ? scaledY(-198) : scaledY(-205) - itemImage: isDay ? "images/sun.png" : "images/moon.png" - lineImage: isDay ? "images/sun_line.png" : "images/moon_line.png" - } - - MediumCloud { - id: cloud2 - x: scaledX(0) - y: scaledY(-800) - finalY: scaledY(-307) - type: isDay ? "cloud" : "cloud_rain" - } - - LargeCloud { - id: cloud1 - x: scaledX(267) - y: scaledY(-800) - finalY: scaledY(-291) - type: isDay ? "cloud" : "cloud_rain" - } - - states : State { - name: "final" - PropertyChanges { target: sun; y: sun.finalY; } - PropertyChanges { target: cloud1; y: cloud1.finalY; } - PropertyChanges { target: cloud2; y: cloud2.finalY; } - PropertyChanges { target: cloud3; y: cloud3.finalY; } - } - - transitions: Transition { - SequentialAnimation { - ParallelAnimation { - NumberAnimation { target: cloud1; properties: "y"; - easing.type: "OutBack"; duration: 500 } - - SequentialAnimation { - PauseAnimation { duration: 200 } - NumberAnimation { target: cloud2; properties: "y"; - easing.type: "OutBack"; duration: 500 } - } - - SequentialAnimation { - PauseAnimation { duration: 400 } - NumberAnimation { target: cloud3; properties: "y"; - easing.type: "OutBack"; duration: 500 } - } - } - - NumberAnimation { target: sun; properties: "y"; - easing.type: "OutBack"; duration: 500 } - } - } - - onPresent: { root.state = "final"; } -} |