summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/rect/GradientRect.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-26 06:03:37 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-28 23:50:09 (GMT)
commitd81e74a5d40202ce17d31f71ae953a19ed7191dd (patch)
tree80bfb6e9d064f19e25038f6ac5990385abeecb5f /tests/auto/declarative/qmlvisual/rect/GradientRect.qml
parentfbcf257f0988f1ffef442195acc9f4b4c1527870 (diff)
downloadQt-d81e74a5d40202ce17d31f71ae953a19ed7191dd.zip
Qt-d81e74a5d40202ce17d31f71ae953a19ed7191dd.tar.gz
Qt-d81e74a5d40202ce17d31f71ae953a19ed7191dd.tar.bz2
Rename visual test to qmlvisual.
Diffstat (limited to 'tests/auto/declarative/qmlvisual/rect/GradientRect.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/rect/GradientRect.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/rect/GradientRect.qml b/tests/auto/declarative/qmlvisual/rect/GradientRect.qml
new file mode 100644
index 0000000..1d3ec98
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/rect/GradientRect.qml
@@ -0,0 +1,25 @@
+import Qt 4.6
+
+Item {
+ id: rect
+ property color color
+ property color border : Qt.rgba(0,0,0,0)
+ property int rotation
+ property int radius
+ property int borderWidth
+ property bool smooth: false
+
+ width: 80; height: 80
+ Item {
+ anchors.centerIn: parent; rotation: rect.rotation;
+ Rectangle {
+ anchors.centerIn: parent; width: 80; height: 80
+ border.color: rect.border; border.width: rect.border != Qt.rgba(0,0,0,0) ? 2 : 0
+ radius: rect.radius; smooth: rect.smooth
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: rect.color }
+ GradientStop { position: 1.0; color: "white" }
+ }
+ }
+ }
+}