diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-21 07:21:52 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-21 07:21:52 (GMT) |
commit | 3bcae242ffada48c9bddbd842b6b82ec509d0344 (patch) | |
tree | 2396a46769e80ebd6053feb9ab7e18c892a75d65 /doc/src | |
parent | f1c883a98b8afd084522505f84c512eabe61f7f5 (diff) | |
parent | b72f9dacb352aa4be888c5f7f1a482dbcba1f456 (diff) | |
download | Qt-3bcae242ffada48c9bddbd842b6b82ec509d0344.zip Qt-3bcae242ffada48c9bddbd842b6b82ec509d0344.tar.gz Qt-3bcae242ffada48c9bddbd842b6b82ec509d0344.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc/src')
-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 |