summaryrefslogtreecommitdiffstats
path: root/doc/src
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
parent411678df3e25304b105e5f3afc849b529baa0d6f (diff)
downloadQt-ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794.zip
Qt-ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794.tar.gz
Qt-ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794.tar.bz2
Better gradient support for Rect.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/declarative/pics/gradient.pngbin0 -> 364 bytes
-rw-r--r--doc/src/snippets/declarative/gradient.qml8
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/declarative/pics/gradient.png b/doc/src/declarative/pics/gradient.png
new file mode 100644
index 0000000..5eefdd2
--- /dev/null
+++ b/doc/src/declarative/pics/gradient.png
Binary files differ
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" }
+ }
+}