diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-21 06:41:27 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-21 06:41:27 (GMT) |
commit | fbfcc8eb1861ceeed50f7701161ca80a6467f367 (patch) | |
tree | c6857f3f654349a6fda163b63404573cc5db3261 /doc | |
parent | 52b516d51bc817e8b7a36955365d2c5cd90c2196 (diff) | |
parent | 3e48bdc1562d1f067bf48422b34514a1e76a40a4 (diff) | |
download | Qt-fbfcc8eb1861ceeed50f7701161ca80a6467f367.zip Qt-fbfcc8eb1861ceeed50f7701161ca80a6467f367.tar.gz Qt-fbfcc8eb1861ceeed50f7701161ca80a6467f367.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/qdeclarativemodels.qdoc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/src/declarative/qdeclarativemodels.qdoc b/doc/src/declarative/qdeclarativemodels.qdoc index d8b2a5d..eecc117 100644 --- a/doc/src/declarative/qdeclarativemodels.qdoc +++ b/doc/src/declarative/qdeclarativemodels.qdoc @@ -206,8 +206,16 @@ The default role names set by Qt are: \endtable QAbstractItemModel presents a heirachy of tables. Views currently provided by QML -can only display list data. In order to display child lists of a heirachical model -use the VisualDataModel element with \e rootIndex set to a parent node. +can only display list data. +In order to display child lists of a heirachical model +the VisualDataModel element provides several properties and functions for use +with models of type QAbstractItemModel: +\list +\o \e hasModelChildren role property to determine whether a node has child nodes. +\o \l VisualDataModel::rootIndex allows the root node to be specifed +\o \l VisualDataModel::modelIndex() returns a QModelIndex which can be assigned to VisualDataModel::rootIndex +\o \l VisualDataModel::parentModelIndex() returns a QModelIndex which can be assigned to VisualDataModel::rootIndex +\endlist \section2 QStringList |