summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/dockwidgets.qdoc
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@nokia.com>2012-08-21 16:13:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-23 11:20:37 +0200
commitfc924ae47e73a5b41e274a723d8f7cdefe921c4f (patch)
tree560b0969b970c262c5ebbc9eaa4d23157f103e19 /examples/widgets/doc/dockwidgets.qdoc
parent8e0bac89d4b0f01b71c57f79a3b98a6ecb7f20ae (diff)
Doc: Fix snippet and example referencing widget examples
Widget examples were moved into a widgets subfolder, but qdoc references were not updated. Change-Id: Id2a4573e723745b9827c664c852807d6116f8f6d Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'examples/widgets/doc/dockwidgets.qdoc')
-rw-r--r--examples/widgets/doc/dockwidgets.qdoc22
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/widgets/doc/dockwidgets.qdoc b/examples/widgets/doc/dockwidgets.qdoc
index 12f18a538f..b4874caad0 100644
--- a/examples/widgets/doc/dockwidgets.qdoc
+++ b/examples/widgets/doc/dockwidgets.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \example mainwindows/dockwidgets
+ \example widgets/mainwindows/dockwidgets
\title Dock Widgets Example
The Dock Widgets example shows how to add dock windows to an
@@ -46,13 +46,13 @@
Here's the class definition:
- \snippet mainwindows/dockwidgets/mainwindow.h 0
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.h 0
We will now review each function in turn.
\section1 MainWindow Class Implementation
- \snippet mainwindows/dockwidgets/mainwindow.cpp 0
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 0
We start by including \c <QtGui>, a header file that contains the
definition of all classes in the \l QtCore and \l QtGui
@@ -60,7 +60,7 @@
every class individually and is especially convenient if we add new
widgets. We also include \c mainwindow.h.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 1
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 1
In the constructor, we start by creating a QTextEdit widget. Then we call
QMainWindow::setCentralWidget(). This function passes ownership of
@@ -77,7 +77,7 @@
createToolBars(), and \c createStatusBar() functions since they
follow the same pattern as all the other Qt examples.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 9
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 9
We create the customers dock window first, and in addition to a
window title, we also pass it a \c this pointer so that it becomes a
@@ -109,7 +109,7 @@
We briefly discuss the rest of the implementation, but have now
covered everything relating to dock windows.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 2
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 2
In this function we clear the QTextEdit so that it is empty. Next we
create a QTextCursor on the QTextEdit. We move the cursor to the
@@ -120,7 +120,7 @@
insert the skeleton of the letter including two markers \c NAME and
\c ADDRESS. We will also use the \c{Yours sincerely,} text as a marker.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 6
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 6
If the user clicks a customer we split the customer details into
pieces. We then look for the \c NAME marker using the \c find()
@@ -133,7 +133,7 @@
operation by the QTextEdit, so a single undo will revert all the
insertions.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 7
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 7
This function works in a similar way to \c insertCustomer(). First
we look for the marker, in this case, \c {Yours sincerely,}, and then
@@ -141,19 +141,19 @@
we use a \c beginEditBlock() ... \c endEditBlock() pair so that the
insertion can be undone as a single operation.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 3
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 3
Qt's QTextDocument class makes printing documents easy. We simply
take the QTextEdit's QTextDocument, set up the printer and print the
document.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 4
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 4
QTextEdit can output its contents in HTML format, so we prompt the
user for the name of an HTML file and if they provide one we simply
write the QTextEdit's contents in HTML format to the file.
- \snippet mainwindows/dockwidgets/mainwindow.cpp 5
+ \snippet widgets/mainwindows/dockwidgets/mainwindow.cpp 5
If the focus is in the QTextEdit, pressing \uicontrol Ctrl+Z undoes as
expected. But for the user's convenience we provide an