summaryrefslogtreecommitdiffstats
path: root/src/widgets
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 /src/widgets
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 'src/widgets')
-rw-r--r--src/widgets/doc/src/model-view-programming.qdoc10
-rw-r--r--src/widgets/itemviews/qitemdelegate.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/widgets/doc/src/model-view-programming.qdoc b/src/widgets/doc/src/model-view-programming.qdoc
index f3b94e31aa..59a75114d7 100644
--- a/src/widgets/doc/src/model-view-programming.qdoc
+++ b/src/widgets/doc/src/model-view-programming.qdoc
@@ -749,7 +749,7 @@
to write custom display functions. However, we must still provide
functions to manage the editor widget:
- \snippet itemviews/spinboxdelegate/delegate.h 0
+ \snippet widgets/itemviews/spinboxdelegate/delegate.h 0
Note that no editor widgets are set up when the delegate is
constructed. We only construct an editor widget when it is needed.
@@ -763,7 +763,7 @@
supplied with everything that the delegate needs to be able to set up
a suitable widget:
- \snippet itemviews/spinboxdelegate/delegate.cpp 1
+ \snippet widgets/itemviews/spinboxdelegate/delegate.cpp 1
Note that we do not need to keep a pointer to the editor widget because
the view takes responsibility for destroying it when it is no longer
@@ -787,7 +787,7 @@
\l{Qt::ItemDataRole}{display role}, and set the value in the
spin box accordingly.
- \snippet itemviews/spinboxdelegate/delegate.cpp 2
+ \snippet widgets/itemviews/spinboxdelegate/delegate.cpp 2
In this example, we know that the editor widget is a spin box, but we
could have provided different editors for different types of data in
@@ -800,7 +800,7 @@
asks the delegate to store the edited value in the model by calling the
\l{QAbstractItemDelegate::setModelData()}{setModelData()} function.
- \snippet itemviews/spinboxdelegate/delegate.cpp 3
+ \snippet widgets/itemviews/spinboxdelegate/delegate.cpp 3
Since the view manages the editor widgets for the delegate, we only
need to update the model with the contents of the editor supplied.
@@ -831,7 +831,7 @@
the view provides all the necessary geometry information inside a
\l{QStyleOptionViewItem}{view option} object.
- \snippet itemviews/spinboxdelegate/delegate.cpp 4
+ \snippet widgets/itemviews/spinboxdelegate/delegate.cpp 4
In this case, we just use the geometry information provided by the
view option in the item rectangle. A delegate that renders items with
diff --git a/src/widgets/itemviews/qitemdelegate.cpp b/src/widgets/itemviews/qitemdelegate.cpp
index f5700746b8..e3ecc68fdf 100644
--- a/src/widgets/itemviews/qitemdelegate.cpp
+++ b/src/widgets/itemviews/qitemdelegate.cpp
@@ -401,7 +401,7 @@ QString QItemDelegatePrivate::valueToText(const QVariant &value, const QStyleOpt
For example, a selected item may need to be displayed differently to
unselected items, as shown in the following code:
- \snippet itemviews/pixelator/pixeldelegate.cpp 2
+ \snippet widgets/itemviews/pixelator/pixeldelegate.cpp 2
\dots
After painting, you should ensure that the painter is returned to its