summaryrefslogtreecommitdiffstats
path: root/examples/declarative/modelviews/objectlistmodel/view.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/modelviews/objectlistmodel/view.qml')
-rw-r--r--examples/declarative/modelviews/objectlistmodel/view.qml18
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]