Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativepositioners / data / gridtest.qml
1 import QtQuick 1.1
2
3 Item {
4     width: 640
5     height: 480
6     property bool testRightToLeft: false
7     Grid {
8         layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight
9         objectName: "grid"
10         columns: 3
11         Rectangle {
12             objectName: "one"
13             color: "red"
14             width: 50
15             height: 50
16         }
17         Rectangle {
18             objectName: "two"
19             color: "green"
20             width: 20
21             height: 50
22         }
23         Rectangle {
24             objectName: "three"
25             color: "blue"
26             width: 30
27             height: 20
28         }
29         Rectangle {
30             objectName: "four"
31             color: "cyan"
32             width: 50
33             height: 50
34         }
35         Rectangle {
36             objectName: "five"
37             color: "magenta"
38             width: 10
39             height: 10
40         }
41     }
42 }