Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / qdeclarativeflipable / test_flipable_resize.qml
1 import QtQuick 1.0
2 Item { //realWindow
3     width: 370
4     height: 480
5     Item {
6         id: window
7         NumberAnimation on width{ from:320; to:370; duration: 500 }
8         NumberAnimation on height{ from:480; to:320; duration: 500 }
9         Flipable {
10             id: flipable
11             x: 0
12             y: window.height / 3.0 - 40
13             width: parent.width
14             height: parent.height
15             transform: Rotation {
16                 id: transform
17                 origin.x: window.width / 2.0
18                 origin.y: 0
19                 origin.z: 0
20                 axis.x: 0
21                 axis.y: 1
22                 axis.z: 0
23                 angle: 0;
24             }
25             front: Rectangle{
26                 width: parent.width
27                 height: 80
28                 color: "blue"
29             }back: Rectangle{
30                 width: parent.width
31                 height: 80
32                 color: "red"
33             }
34         }
35         Flipable {
36             id: flipableBack
37             x: 0
38             y: 2.0 * window.height / 3.0 - 40
39             width: parent.width
40             height: parent.height
41             transform: Rotation {
42                 id: transformBack
43                 origin.x: window.width / 2.0
44                 origin.y: 0
45                 origin.z: 0
46                 axis.x: 0
47                 axis.y: 1
48                 axis.z: 0
49                 angle: 180;
50             }
51             front: Rectangle{
52                 width: parent.width
53                 height: 80
54                 color: "blue"
55             }back: Rectangle{
56                 width: parent.width
57                 height: 80
58                 color: "red"
59             }
60         }
61     }
62 }