summaryrefslogtreecommitdiffstats
path: root/examples/declarative/modelviews/stringlistmodel/view.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/modelviews/stringlistmodel/view.qml')
-rw-r--r--examples/declarative/modelviews/stringlistmodel/view.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/declarative/modelviews/stringlistmodel/view.qml b/examples/declarative/modelviews/stringlistmodel/view.qml
index ec5597d..3d789fd 100644
--- a/examples/declarative/modelviews/stringlistmodel/view.qml
+++ b/examples/declarative/modelviews/stringlistmodel/view.qml
@@ -39,17 +39,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
- Text { text: modelData }
- }
+ delegate: Rectangle {
+ height: 25
+ width: 100
+ Text { text: modelData }
}
}
+//![0]