summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-07-01 02:11:15 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-07-01 06:55:41 (GMT)
commit0e7f70bb44eae2798c7f2198b713dc1c6ab6f652 (patch)
treeded37a0e5f614d751460e0e62319667c1ea247ae /src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
parent7cc5171a7d66390688444d57bb3f4550dbbd26ee (diff)
downloadQt-0e7f70bb44eae2798c7f2198b713dc1c6ab6f652.zip
Qt-0e7f70bb44eae2798c7f2198b713dc1c6ab6f652.tar.gz
Qt-0e7f70bb44eae2798c7f2198b713dc1c6ab6f652.tar.bz2
docs - quote code with snippets, other improvements
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
index 8071d7a..786d6f9 100644
--- a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
+++ b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
@@ -818,6 +818,12 @@ void QDeclarativeVisualDataModel::setDelegate(QDeclarativeComponent *delegate)
\c view.qml:
\snippet doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml 0
+ If the \l model is a QAbstractItemModel subclass, the delegate can also
+ reference a \c hasModelChildren property (optionally qualified by a
+ \e model. prefix) that indicates whether the delegate's model item has
+ any child nodes.
+
+
\sa modelIndex(), parentModelIndex()
*/
QVariant QDeclarativeVisualDataModel::rootIndex() const