summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-02 07:00:14 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-09-02 07:00:14 (GMT)
commit5455a16f49e8d36e604705c14c842c8a4e1b4f1f (patch)
tree60e0fbdb2d2ab5109fb3327968b84681d433b73a /examples/declarative
parent2fc0161b46597bf64a8f88f027f3b98a021a8242 (diff)
downloadQt-5455a16f49e8d36e604705c14c842c8a4e1b4f1f.zip
Qt-5455a16f49e8d36e604705c14c842c8a4e1b4f1f.tar.gz
Qt-5455a16f49e8d36e604705c14c842c8a4e1b4f1f.tar.bz2
Disallow using typenames as ids
This is now illegal: import Qt 4.6 Item { id: Item } as is import Qt 4.6 Item { id: Text }
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/flowview/flowview.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/flowview/flowview.qml b/examples/declarative/flowview/flowview.qml
index ca31bcc..1ab8e92 100644
--- a/examples/declarative/flowview/flowview.qml
+++ b/examples/declarative/flowview/flowview.qml
@@ -15,7 +15,7 @@ Rectangle {
states: State {
name: "rotated"
- PropertyChanges { target: ListView; z: 2 }
+ PropertyChanges { target: MyListView; z: 2 }
PropertyChanges { target: TopBar; y: -30 }
PropertyChanges { target: BottomBar; y: 480 }
PropertyChanges { target: LeftBar; x: 0 }
@@ -44,7 +44,7 @@ Rectangle {
}
delegate: Package {
Item { id: List; Package.name: "list"; width:120; height: 400; }
- Item { id: Grid; Package.name: "grid"; width:400; height: 120; }
+ Item { id: GridItem; Package.name: "grid"; width:400; height: 120; }
Loader { id: MyContent; width:400; height: 120; source: weblet }
StateGroup {
@@ -58,7 +58,7 @@ Rectangle {
State {
name: "InGrid"
when: MyPhone.state != "rotated"
- ParentChange { target: MyContent; parent: Grid }
+ ParentChange { target: MyContent; parent: GridItem }
PropertyChanges { target: MyContent; x: 0; y: 0; }
}
]
@@ -75,7 +75,7 @@ Rectangle {
from: "*"; to: "InList"
SequentialAnimation {
ParentAction{}
- PauseAnimation { duration: 50 * (Grid.FlowView.row * 2 + Grid.FlowView.column) }
+ PauseAnimation { duration: 50 * (GridItem.FlowView.row * 2 + GridItem.FlowView.column) }
NumberAnimation { properties: "x,y,rotation"; easing: "easeInOutQuad" }
}
}
@@ -87,7 +87,7 @@ Rectangle {
Item {
FlowView {
- id: ListView
+ id: MyListView
vertical: true
y: 40
x: 40