From 45153a37e4d9e39e8c326a0f33ea17be49bb29e2 Mon Sep 17 00:00:00 2001 From: Geir Vattekar Date: Thu, 17 Feb 2011 12:57:12 +0100 Subject: Doc: VisualDataModel.rootIndex is only affects hierarchical models Task-number: QTBUG-17273 --- src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp index a8082f8..97ce059 100644 --- a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp +++ b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp @@ -839,7 +839,8 @@ void QDeclarativeVisualDataModel::setDelegate(QDeclarativeComponent *delegate) QML only operates on list data. \c rootIndex allows the children of any node in a QAbstractItemModel to be provided by this model. - This property only affects models of type QAbstractItemModel. + This property only affects models of type QAbstractItemModel that + are hierarchical (e.g, a tree model). For example, here is a simple interactive file system browser. When a directory name is clicked, the view's \c rootIndex is set to the -- cgit v0.12