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 /examples/declarative/modelviews/objectlistmodel/view.qml | |
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 'examples/declarative/modelviews/objectlistmodel/view.qml')
-rw-r--r-- | examples/declarative/modelviews/objectlistmodel/view.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/declarative/modelviews/objectlistmodel/view.qml b/examples/declarative/modelviews/objectlistmodel/view.qml index 034121c..c3cccdd 100644 --- a/examples/declarative/modelviews/objectlistmodel/view.qml +++ b/examples/declarative/modelviews/objectlistmodel/view.qml @@ -40,17 +40,17 @@ import Qt 4.7 +//![0] ListView { - width: 100 - height: 100 + width: 100; height: 100 anchors.fill: parent + model: myModel - delegate: Component { - Rectangle { - height: 25 - width: 100 - color: model.modelData.color - Text { text: name } - } + delegate: Rectangle { + height: 25 + width: 100 + color: model.modelData.color + Text { text: name } } } +//![0] |