summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/gradient.qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-27 07:00:37 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-27 07:00:37 (GMT)
commited5d5f6f04cda1f7aa3ea66be5fefc0a85429794 (patch)
treeb8244c7f0cd8b50e18faf64508a32c94f274a698 /doc/src/snippets/declarative/gradient.qml
parent411678df3e25304b105e5f3afc849b529baa0d6f (diff)
downloadQt-ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794.zip
Qt-ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794.tar.gz
Qt-ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794.tar.bz2
Better gradient support for Rect.
Diffstat (limited to 'doc/src/snippets/declarative/gradient.qml')
-rw-r--r--doc/src/snippets/declarative/gradient.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/gradient.qml b/doc/src/snippets/declarative/gradient.qml
new file mode 100644
index 0000000..28018b8
--- /dev/null
+++ b/doc/src/snippets/declarative/gradient.qml
@@ -0,0 +1,8 @@
+Rect {
+ width: 100; height: 100
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "red" }
+ GradientStop { position: 0.33; color: "yellow" }
+ GradientStop { position: 1.0; color: "green" }
+ }
+}