summaryrefslogtreecommitdiffstats
path: root/examples/declarative/listview
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/listview')
-rw-r--r--examples/declarative/listview/dummydata/MyPetsModel.qml4
-rw-r--r--examples/declarative/listview/dummydata/Recipes.qml2
-rw-r--r--examples/declarative/listview/sections.qml2
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/listview/dummydata/MyPetsModel.qml b/examples/declarative/listview/dummydata/MyPetsModel.qml
index 074fc13..1ac37bb 100644
--- a/examples/declarative/listview/dummydata/MyPetsModel.qml
+++ b/examples/declarative/listview/dummydata/MyPetsModel.qml
@@ -1,9 +1,9 @@
import Qt 4.6
// ListModel allows free form list models to be defined and populated.
-// Be sure to name the file the same as the id.
+
ListModel {
- id: MyListElementsModel
+ id: petsModel
ListElement {
name: "Polly"
type: "Parrot"
diff --git a/examples/declarative/listview/dummydata/Recipes.qml b/examples/declarative/listview/dummydata/Recipes.qml
index 533730f..68e94ac 100644
--- a/examples/declarative/listview/dummydata/Recipes.qml
+++ b/examples/declarative/listview/dummydata/Recipes.qml
@@ -1,7 +1,7 @@
import Qt 4.6
ListModel {
- id: Recipes
+ id: recipesModel
ListElement {
title: "Pancakes"
picture: "content/pics/pancakes.jpg"
diff --git a/examples/declarative/listview/sections.qml b/examples/declarative/listview/sections.qml
index 6e72ce7..877026b 100644
--- a/examples/declarative/listview/sections.qml
+++ b/examples/declarative/listview/sections.qml
@@ -42,7 +42,7 @@ Rectangle {
}
// The list
ListView {
- id: List
+ id: myList
width: 200
height: parent.height
model: MyPetsModel