diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-08-29 10:25:56 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-01 11:24:50 +0200 |
commit | 3ef3c662fecf60be1efcc315a1ae585658c1bec3 (patch) | |
tree | 9942df6af7420a6c2b4fb48cd44bddc9cd3e8a5e /examples/widgets/doc/wiggly.qdoc | |
parent | eede34aa6b8f60ec2627ebd8726d76e15478edc3 (diff) |
Don't reference widgets/widgets in example doc.
Change-Id: Ie1fe516f75ca8c1b2233dc6bb2b887b55593e730
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'examples/widgets/doc/wiggly.qdoc')
-rw-r--r-- | examples/widgets/doc/wiggly.qdoc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/widgets/doc/wiggly.qdoc b/examples/widgets/doc/wiggly.qdoc index 868a9b9390..e84ab00e61 100644 --- a/examples/widgets/doc/wiggly.qdoc +++ b/examples/widgets/doc/wiggly.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \example widgets/widgets/wiggly + \example widgets/wiggly \title Wiggly Example The Wiggly example shows how to animate a widget using @@ -60,14 +60,14 @@ \section1 Dialog Class Definition - \snippet widgets/widgets/wiggly/dialog.h 0 + \snippet widgets/wiggly/dialog.h 0 The \c Dialog class provides a dialog widget that allows the user to enter a text. The text is then rendered by \c WigglyWidget. \section1 Dialog Class Implementation - \snippet widgets/widgets/wiggly/dialog.cpp 0 + \snippet widgets/wiggly/dialog.cpp 0 In the constructor we create a wiggly widget along with a \l{QLineEdit}{line edit}, and we put the two widgets in a @@ -79,7 +79,7 @@ \section1 WigglyWidget Class Definition - \snippet widgets/widgets/wiggly/wigglywidget.h 0 + \snippet widgets/wiggly/wigglywidget.h 0 The \c WigglyWidget class provides the wiggly line displaying the text. We subclass QWidget and reimplement the standard \l @@ -96,7 +96,7 @@ \section1 WigglyWidget Class Implementation - \snippet widgets/widgets/wiggly/wigglywidget.cpp 0 + \snippet widgets/wiggly/wigglywidget.cpp 0 In the constructor, we make the widget's background slightly lighter than the usual background using the QPalette::Midlight @@ -109,8 +109,8 @@ timer events generated when the timer times out (every 60 milliseconds). - \snippet widgets/widgets/wiggly/wigglywidget.cpp 1 - \snippet widgets/widgets/wiggly/wigglywidget.cpp 2 + \snippet widgets/wiggly/wigglywidget.cpp 1 + \snippet widgets/wiggly/wigglywidget.cpp 2 The \c paintEvent() function is called whenever a QPaintEvent is sent to the widget. Paint events are sent to widgets that need to @@ -133,8 +133,8 @@ font below the base line). If the descent equals the ascent, they cancel out each other and the base line is at \c height() / 2. - \snippet widgets/widgets/wiggly/wigglywidget.cpp 3 - \snippet widgets/widgets/wiggly/wigglywidget.cpp 4 + \snippet widgets/wiggly/wigglywidget.cpp 3 + \snippet widgets/wiggly/wigglywidget.cpp 4 Each time the \c paintEvent() function is called, we create a QPainter object \c painter to draw the contents of the widget. @@ -150,8 +150,8 @@ 'V'). The result is that the text isn't perfectly centered. You can verify this by typing "AVAVAVAVAVAV" in the line edit. - \snippet widgets/widgets/wiggly/wigglywidget.cpp 5 - \snippet widgets/widgets/wiggly/wigglywidget.cpp 6 + \snippet widgets/wiggly/wigglywidget.cpp 5 + \snippet widgets/wiggly/wigglywidget.cpp 6 The \c timerEvent() function receives all the timer events that are generated for this widget. If a timer event is sent from the |