summaryrefslogtreecommitdiffstats
path: root/examples/declarative/listview
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-03 00:01:13 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-03 00:04:03 (GMT)
commit17d0ed5af4922645a268b6550742fb521d459c8e (patch)
tree43f4077630bd896da88715dec894392c63ac666b /examples/declarative/listview
parent35a211cd95e0d09ef0b547b57f01f0a9ff41da2f (diff)
downloadQt-17d0ed5af4922645a268b6550742fb521d459c8e.zip
Qt-17d0ed5af4922645a268b6550742fb521d459c8e.tar.gz
Qt-17d0ed5af4922645a268b6550742fb521d459c8e.tar.bz2
Disallow ids that start with uppercase letters and update docs and
examples accordingly. Task-number: QT-2786
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