Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativepositioners / data / grid-animated.qml
1 import QtQuick 1.1
2
3 Item {
4     width: 640
5     height: 480
6     property bool testRightToLeft: true
7
8     Grid {
9         objectName: "grid"
10         columns: 3
11         layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight
12         add: Transition {
13             NumberAnimation {
14                 properties: "x,y";
15             }
16         }
17         move: Transition {
18             NumberAnimation {
19                 properties: "x,y";
20             }
21         }
22         Rectangle {
23             objectName: "one"
24             color: "red"
25             x: -100
26             y: -100
27             width: 50
28             height: 50
29         }
30         Rectangle {
31             objectName: "two"
32             x: -100
33             y: -100
34             opacity: 0
35             color: "green"
36             width: 50
37             height: 50
38         }
39         Rectangle {
40             objectName: "three"
41             color: "blue"
42             x: -100
43             y: -100
44             width: 50
45             height: 50
46         }
47         Rectangle {
48             objectName: "four"
49             color: "cyan"
50             x: -100
51             y: -100
52             width: 50
53             height: 50
54         }
55         Rectangle {
56             objectName: "five"
57             color: "magenta"
58             x: -100
59             y: -100
60             width: 50
61             height: 50
62         }
63     }
64 }