diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-27 07:00:37 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-27 07:00:37 (GMT) |
commit | ed5d5f6f04cda1f7aa3ea66be5fefc0a85429794 (patch) | |
tree | b8244c7f0cd8b50e18faf64508a32c94f274a698 /doc/src/snippets/declarative/gradient.qml | |
parent | 411678df3e25304b105e5f3afc849b529baa0d6f (diff) | |
download | Qt-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.qml | 8 |
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" } + } +} |