diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2011-02-17 11:57:12 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@nokia.com> | 2011-02-17 12:02:36 (GMT) |
commit | 45153a37e4d9e39e8c326a0f33ea17be49bb29e2 (patch) | |
tree | 62acb329b18c49304681826ab4503c2c2442659b | |
parent | c39b3d42dda26b1f9576906cd001236c9d96e06a (diff) | |
download | Qt-45153a37e4d9e39e8c326a0f33ea17be49bb29e2.zip Qt-45153a37e4d9e39e8c326a0f33ea17be49bb29e2.tar.gz Qt-45153a37e4d9e39e8c326a0f33ea17be49bb29e2.tar.bz2 |
Doc: VisualDataModel.rootIndex is only affects hierarchical models
Task-number: QTBUG-17273
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |