summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@digia.com>2014-09-15 14:15:02 +0200
committerNico Vertriest <nico.vertriest@digia.com>2014-09-16 13:15:05 +0200
commitb21660f605ecb5ff9657cd2f5b87558868db2fd7 (patch)
tree580476978f4b82dc4b992c47934d4c091578a8c5
parentbba252371e5e7eef45bd62d79203fd90d26399ab (diff)
downloadqtlocation-b21660f605ecb5ff9657cd2f5b87558868db2fd7.tar.gz
Doc: replace VisualDataModel with DelegateModel
Task-number: QTBUG-37725 Change-Id: Ia5b98f630afd735d60e80eb986d5df7a9d40cd82 Reviewed-by: Martin Smith <martin.smith@digia.com>
-rw-r--r--src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp6
-rw-r--r--src/location/doc/src/examples/declarative-places.qdoc4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp b/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
index acd0d081..507a4e14 100644
--- a/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
+++ b/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
@@ -82,7 +82,7 @@ QT_USE_NAMESPACE
\codeline
\snippet declarative/places.qml CategoryView
- To access the hierarchical category model it is necessary to use a \l VisualDataModel to access
+ To access the hierarchical category model it is necessary to use a \l DelegateModel to access
the child items.
*/
@@ -364,7 +364,7 @@ void QDeclarativeSupportedCategoriesModel::addedCategory(const QPlaceCategory &c
parentNode->childIds.insert(rowToBeAdded,category.categoryId());
endInsertRows();
- //this is a workaround to deal with the fact that the hasModelChildren field of VisualDataodel
+ //this is a workaround to deal with the fact that the hasModelChildren field of DelegateModel
//does not get updated when a child is added to a model
beginResetModel();
endResetModel();
@@ -428,7 +428,7 @@ void QDeclarativeSupportedCategoriesModel::updatedCategory(const QPlaceCategory
categoryNode->parentId = parentId;
endMoveRows();
- //this is a workaround to deal with the fact that the hasModelChildren field of VisualDataodel
+ //this is a workaround to deal with the fact that the hasModelChildren field of DelegateModel
//does not get updated when an index is updated to contain children
beginResetModel();
endResetModel();
diff --git a/src/location/doc/src/examples/declarative-places.qdoc b/src/location/doc/src/examples/declarative-places.qdoc
index 1b4b3635..c80ed04c 100644
--- a/src/location/doc/src/examples/declarative-places.qdoc
+++ b/src/location/doc/src/examples/declarative-places.qdoc
@@ -94,12 +94,12 @@
\codeline
\snippet places/content/places/CategoryView.qml CategoryModel view 3
- Because a hierarchical model is being used, a \l VisualDataModel is needed to provide
+ Because a hierarchical model is being used, a \l DelegateModel is needed to provide
navigation functionality. If flat list model was being used the view could use the
\l CategoryModel directly.
The view contains a header item that is used as a back button to navigate up the category tree.
- The \e onClicked handler sets the root index of the \l VisualDataModel to the parent of the
+ The \e onClicked handler sets the root index of the \l DelegateModel to the parent of the
current index. Categories are displayed by the \e CategoryDelegate, which provides four
signals. The \e onArrowClicked handler sets the root index to the current index causing the
sub categories of the selected category to be displayed. The \e onClicked handler emits