From 2f89a01bdd9f85b58c80a7df4c7885cb6efa8e3b Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Mon, 20 Jun 2011 17:42:51 +0200 Subject: [PATCH] Fix typo and put the correct snippets in the output. Reviewed-by: David Boddie --- doc/src/declarative/example-textballoons.qdoc | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/declarative/example-textballoons.qdoc b/doc/src/declarative/example-textballoons.qdoc index 90de999..7c21d18 100644 --- a/doc/src/declarative/example-textballoons.qdoc +++ b/doc/src/declarative/example-textballoons.qdoc @@ -51,11 +51,11 @@ \section1 TextBalloon Class Declaration - The \c TextBalloon class inherits from QSGPaintedItem. QSGPaintedItem class + The \c TextBalloon class inherits from QSGPaintedItem. QSGPaintedItem is the base class for all QPainter based items in the QML Scene Graph framework. - \snippet examples/declarative/painteditem/textballoons/textballoonplugin/textballoon.h 0 + \snippet examples/declarative/painteditem/textballoons/textballoon.h 0 To implement a QSGPaintedItem you must implement QSGPaintedIem's pure virtual function \l {QSGPaintedItem::}{paint()} which implements the @@ -66,13 +66,13 @@ We have to be sure to initialize the rightAligned property for a TextBalloon item. - \snippet examples/declarative/painteditem/textballoons/textballoonplugin/textballoon.cpp 0 + \snippet examples/declarative/painteditem/textballoons/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/declarative/painteditem/textballoons/textballoonplugin/textballoon.cpp 1 + \snippet examples/declarative/painteditem/textballoons/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 {QSGPaintedItem::}{boundingRect()} -- 1.7.2.5