aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/stringlistmodel/view.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/models/stringlistmodel/view.qml')
-rw-r--r--examples/quick/models/stringlistmodel/view.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/quick/models/stringlistmodel/view.qml b/examples/quick/models/stringlistmodel/view.qml
index f74b7db1c1..e392284d0f 100644
--- a/examples/quick/models/stringlistmodel/view.qml
+++ b/examples/quick/models/stringlistmodel/view.qml
@@ -52,13 +52,15 @@ import QtQuick 2.0
//![0]
ListView {
- width: 100; height: 100
+ width: 100
+ height: 100
+ required model
- model: myModel
delegate: Rectangle {
+ required property string modelData
height: 25
width: 100
- Text { text: modelData }
+ Text { text: parent.modelData }
}
}
//![0]