Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / rect / rect-painting.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     width: 450; height: 250
5     color: "white"
6
7     Rectangle {
8         anchors.top: parent.verticalCenter
9         anchors.left: parent.left
10         anchors.right: parent.right
11         anchors.bottom: parent.bottom
12         color: "#eeeeee"
13     }
14
15     Grid {
16         anchors.centerIn: parent
17         columns: 8; rows:4; spacing: 15
18
19         MyRect { color: "lightsteelblue" }
20         MyRect { color: "lightsteelblue"; border: "gray" }
21         MyRect { color: "lightsteelblue"; radius: 10 }
22         MyRect { color: "lightsteelblue"; radius: 10; border: "gray" }
23         GradientRect { color: "lightsteelblue" }
24         GradientRect { color: "lightsteelblue"; border: "gray" }
25         GradientRect { color: "lightsteelblue"; radius: 10 }
26         GradientRect { color: "lightsteelblue"; radius: 10; border: "gray" }
27
28         MyRect { color: "thistle"; rotation: 10 }
29         MyRect { color: "thistle"; border: "gray"; rotation: 10 }
30         MyRect { color: "thistle"; radius: 10; rotation: 10 }
31         MyRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10 }
32         GradientRect { color: "thistle"; rotation: 10 }
33         GradientRect { color: "thistle"; border: "gray"; rotation: 10 }
34         GradientRect { color: "thistle"; radius: 10; rotation: 10 }
35         GradientRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10 }
36
37         MyRect { color: "lightsteelblue"; smooth: true }
38         MyRect { color: "lightsteelblue"; border: "gray"; smooth: true }
39         MyRect { color: "lightsteelblue"; radius: 10; smooth: true }
40         MyRect { color: "lightsteelblue"; radius: 10; border: "gray"; smooth: true }
41         GradientRect { color: "lightsteelblue"; smooth: true }
42         GradientRect { color: "lightsteelblue"; border: "gray"; smooth: true }
43         GradientRect { color: "lightsteelblue"; radius: 10; smooth: true }
44         GradientRect { color: "lightsteelblue"; radius: 10; border: "gray"; smooth: true }
45
46         MyRect { color: "thistle"; rotation: 10; smooth: true }
47         MyRect { color: "thistle"; border: "gray"; rotation: 10; smooth: true }
48         MyRect { color: "thistle"; radius: 10; rotation: 10; smooth: true }
49         MyRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10; smooth: true }
50         GradientRect { color: "thistle"; rotation: 10; smooth: true }
51         GradientRect { color: "thistle"; border: "gray"; rotation: 10; smooth: true }
52         GradientRect { color: "thistle"; radius: 10; rotation: 10; smooth: true }
53         GradientRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10; smooth: true }
54     }
55 }