summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/simplewidgetmapper.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/doc/simplewidgetmapper.qdoc')
-rw-r--r--examples/widgets/doc/simplewidgetmapper.qdoc14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/widgets/doc/simplewidgetmapper.qdoc b/examples/widgets/doc/simplewidgetmapper.qdoc
index 2b7cd2d79a..33e2569974 100644
--- a/examples/widgets/doc/simplewidgetmapper.qdoc
+++ b/examples/widgets/doc/simplewidgetmapper.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \example itemviews/simplewidgetmapper
+ \example widgets/itemviews/simplewidgetmapper
\title Simple Widget Mapper Example
The Simple Widget Mapper example shows how to use a widget mapper to display
@@ -50,7 +50,7 @@
The class provides a constructor, a slot to keep the buttons up to date,
and a private function to set up the model:
- \snippet itemviews/simplewidgetmapper/window.h Window definition
+ \snippet widgets/itemviews/simplewidgetmapper/window.h Window definition
In addition to the QDataWidgetMapper object and the controls used to make
up the user interface, we use a QStandardItemModel to hold our data.
@@ -62,7 +62,7 @@
The constructor of the \c Window class can be explained in three parts.
In the first part, we set up the widgets used for the user interface:
- \snippet itemviews/simplewidgetmapper/window.cpp Set up widgets
+ \snippet widgets/itemviews/simplewidgetmapper/window.cpp Set up widgets
We also set up the buddy relationships between various labels and the
corresponding input widgets.
@@ -70,7 +70,7 @@
Next, we set up the widget mapper, relating each input widget to a column
in the model specified by the call to \l{QDataWidgetMapper::}{setModel()}:
- \snippet itemviews/simplewidgetmapper/window.cpp Set up the mapper
+ \snippet widgets/itemviews/simplewidgetmapper/window.cpp Set up the mapper
We also connect the mapper to the \uicontrol{Next} and \uicontrol{Previous} buttons
via its \l{QDataWidgetMapper::}{toNext()} and
@@ -81,7 +81,7 @@
In the final part of the constructor, we set up the layout, placing each
of the widgets in a grid (we could also use a QFormLayout for this):
- \snippet itemviews/simplewidgetmapper/window.cpp Set up the layout
+ \snippet widgets/itemviews/simplewidgetmapper/window.cpp Set up the layout
Lastly, we set the window title and initialize the mapper by setting it to
refer to the first row in the model.
@@ -90,7 +90,7 @@
we create a standard model with 5 rows and 3 columns, and we insert some
sample names, addresses and ages into each row:
- \snippet itemviews/simplewidgetmapper/window.cpp Set up the model
+ \snippet widgets/itemviews/simplewidgetmapper/window.cpp Set up the model
As a result, each row can be treated like a record in a database, and the
widget mapper will read the data from each row, using the column numbers
@@ -104,7 +104,7 @@
user-friendly, we implement the \c{updateButtons()} slot to show when the
user is viewing the first or last records:
- \snippet itemviews/simplewidgetmapper/window.cpp Slot for updating the buttons
+ \snippet widgets/itemviews/simplewidgetmapper/window.cpp Slot for updating the buttons
If the mapper is referring to the first row in the model, the \uicontrol{Previous}
button is disabled. Similarly, the \uicontrol{Next} button is disabled if the