aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/painteditem
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2012-11-30 12:30:11 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-30 15:30:17 +0100
commit6daa13b55a0e6685d7397e93e4c37c739ede9268 (patch)
treebe25bbc11d2bedda518bee502a445c615e1ff90d /examples/quick/painteditem
parentd7996b7637ae0bbc261c32b4f93dd07e66eeda7a (diff)
Fix example lists for Qt Quick
Snippets are fixed, the extending-examples are moved from QtDoc, groups are used to generate the lists and I've removed some unrelated stuff from the list of Qt Quick examples. Change-Id: I347b6fa8a29b1cede1164fa858488f34507e1a17 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'examples/quick/painteditem')
-rw-r--r--examples/quick/painteditem/textballoons/doc/src/textballoons.qdoc12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/quick/painteditem/textballoons/doc/src/textballoons.qdoc b/examples/quick/painteditem/textballoons/doc/src/textballoons.qdoc
index 910072aee4..3cc0444c4e 100644
--- a/examples/quick/painteditem/textballoons/doc/src/textballoons.qdoc
+++ b/examples/quick/painteditem/textballoons/doc/src/textballoons.qdoc
@@ -28,7 +28,9 @@
/*!
\title Scenegraph Painted Item Example
+ \brief Shows how to implement QPainter-based custom scenegraph items
\example quick/painteditem/textballoons
+ \ingroup qtquickexamples
The Painted Item example shows how to use the QML Scene Graph framework to
implement custom scenegraph items using QPainter.
@@ -56,7 +58,7 @@
is the base class for all QPainter based items in the QML Scene Graph
framework.
- \snippet examples/quick/painteditem/textballoons/textballoon.h 0
+ \snippet quick/customitems/painteditem/textballoon.h 0
To implement a QQuickPaintedItem you must implement QQuickPaintedIem's pure
virtual function \l {QQuickPaintedItem::}{paint()} which implements the
@@ -67,13 +69,13 @@
We have to be sure to initialize the rightAligned property for a
TextBalloon item.
- \snippet examples/quick/painteditem/textballoons/textballoon.cpp 0
+ \snippet quick/customitems/painteditem/textballoon.cpp 0
Then we implement the \c paint() function which is automatically called by
the Scenegraph framework to paint the contents of the item. The function
paints the item in local coordinates.
- \snippet examples/quick/painteditem/textballoons/textballoon.cpp 1
+ \snippet quick/customitems/painteditem/textballoon.cpp 1
We start with setting the pen and brush on the item to define the look of
the item. After that we start drawing. Note that the \l {QQuickPaintedItem::}{boundingRect()}
@@ -88,7 +90,7 @@
\section2 BalloonView
- \snippet examples/quick/painteditem/textballoons/textballoons.qml 0
+ \snippet quick/customitems/painteditem/textballoons.qml 0
The balloonModel contains two elements at application start which will be
displayed by the balloonView. The balloonView alernates the TextBalloon
@@ -96,7 +98,7 @@
\section2 Controls
- \snippet examples/quick/painteditem/textballoons/textballoons.qml 1
+ \snippet quick/customitems/painteditem/textballoons.qml 1
The controls part of the UI contains a rectangle with a MouseArea which
changes color when the mouse hovers over it. This control 'button' adds