summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-26 11:24:37 +1000
committerYann Bodson <yann.bodson@nokia.com>2010-05-26 11:25:18 +1000
commit113d7a6a1eab75ad5673f9b50ccf8df456b5d628 (patch)
tree6bf3617e834075e5194fb69e243e46d5b9f1af05
parent3d34201d34ba26530025d5ff88fa6e498ae6f800 (diff)
Fix Gradient doc snippet.
-rw-r--r--doc/src/snippets/declarative/gradient.qml2
-rw-r--r--src/declarative/graphicsitems/qdeclarativerectangle.cpp6
2 files changed, 3 insertions, 5 deletions
diff --git a/doc/src/snippets/declarative/gradient.qml b/doc/src/snippets/declarative/gradient.qml
index d25352bde8..7a68233e3b 100644
--- a/doc/src/snippets/declarative/gradient.qml
+++ b/doc/src/snippets/declarative/gradient.qml
@@ -41,6 +41,7 @@
import Qt 4.7
+//![code]
Rectangle {
width: 100; height: 100
gradient: Gradient {
@@ -49,3 +50,4 @@ Rectangle {
GradientStop { position: 1.0; color: "green" }
}
}
+//![code]
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
index d098aa01f0..4f7a72214e 100644
--- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp
@@ -114,11 +114,7 @@ void QDeclarativeGradientStop::updateGradient()
rectangle with a gradient starting with red, blending to yellow at 1/3 of the
size of the rectangle, and ending with Green:
- \table
- \row
- \o \image gradient.png
- \o \quotefile doc/src/snippets/declarative/gradient.qml
- \endtable
+ \snippet doc/src/snippets/declarative/gradient.qml code
\sa GradientStop
*/