diff -r 5dc02b23752f -r 3e2da88830cd examples/declarative/modelviews/objectlistmodel/view.qml --- a/examples/declarative/modelviews/objectlistmodel/view.qml Tue Jul 06 15:10:48 2010 +0300 +++ b/examples/declarative/modelviews/objectlistmodel/view.qml Wed Aug 18 10:37:55 2010 +0300 @@ -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]