diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-01 02:11:15 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-07-01 06:55:41 (GMT) |
commit | 0e7f70bb44eae2798c7f2198b713dc1c6ab6f652 (patch) | |
tree | ded37a0e5f614d751460e0e62319667c1ea247ae /doc/src/snippets/declarative/visualdatamodel_rootindex | |
parent | 7cc5171a7d66390688444d57bb3f4550dbbd26ee (diff) | |
download | Qt-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.qml | 2 |
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) } } |