From b21660f605ecb5ff9657cd2f5b87558868db2fd7 Mon Sep 17 00:00:00 2001
From: Nico Vertriest <nico.vertriest@digia.com>
Date: Mon, 15 Sep 2014 14:15:02 +0200
Subject: [PATCH] Doc: replace VisualDataModel with DelegateModel

Task-number: QTBUG-37725
Change-Id: Ia5b98f630afd735d60e80eb986d5df7a9d40cd82
Reviewed-by: Martin Smith <martin.smith@digia.com>
---
 .../qdeclarativesupportedcategoriesmodel.cpp                | 6 +++---
 src/location/doc/src/examples/declarative-places.qdoc       | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp b/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
index acd0d081b..507a4e140 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 1b4b3635e..c80ed04c2 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
-- 
GitLab