summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/visualdatamodel_rootindex
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 /doc/src/snippets/declarative/visualdatamodel_rootindex
parent7cc5171a7d66390688444d57bb3f4550dbbd26ee (diff)
downloadQt-0e7f70bb44eae2798c7f2198b713dc1c6ab6f652.zip
Qt-0e7f70bb44eae2798c7f2198b713dc1c6ab6f652.tar.gz
Qt-0e7f70bb44eae2798c7f2198b713dc1c6ab6f652.tar.bz2
docs - quote code with snippets, other improvements
Diffstat (limited to 'doc/src/snippets/declarative/visualdatamodel_rootindex')
-rw-r--r--doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml b/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml
index 835ca32..9e759f9 100644
--- a/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml
+++ b/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml
@@ -55,7 +55,7 @@ ListView {
MouseArea {
anchors.fill: parent
onClicked: {
- if (hasModelChildren)
+ if (model.hasModelChildren)
view.model.rootIndex = view.model.modelIndex(index)
}
}