aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-28 11:07:19 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-28 11:03:22 +0000
commit4d722de834da30715b344db712ee12054fabe8b6 (patch)
tree8148dbf227e933e9fcba7e97f0cd1a0a500782c3 /src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml
parent031e4c1fcf2d95b9759d8b666775a8025b367832 (diff)
Purge use of VisualDataModel from docs where DelegateModel is required
They are the same types except that VisualDataModel is deprecated and uses a different import statement. Now, references to VisualDataModel are only used where we explicitly refer to the replacement/deprecation. Change-Id: I1e68eb5784235a00233b3882c3d91e21e32af7d1 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml')
-rw-r--r--src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml b/src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml
index f4e18f6ac0..719d16ff7d 100644
--- a/src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml
+++ b/src/qml/doc/snippets/delegatemodel/visualdatamodel_rootindex/view.qml
@@ -39,13 +39,14 @@
****************************************************************************/
//![0]
import QtQuick 2.0
+import QtQml.Models 2.2
ListView {
id: view
width: 300
height: 400
- model: VisualDataModel {
+ model: DelegateModel {
model: dirModel
delegate: Rectangle {