summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/mobile
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 /demos/declarative/flickr/mobile
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 'demos/declarative/flickr/mobile')
-rw-r--r--demos/declarative/flickr/mobile/Button.qml10
-rw-r--r--demos/declarative/flickr/mobile/ImageDetails.qml4
2 files changed, 7 insertions, 7 deletions
diff --git a/demos/declarative/flickr/mobile/Button.qml b/demos/declarative/flickr/mobile/Button.qml
index 3a0b42e..6887240 100644
--- a/demos/declarative/flickr/mobile/Button.qml
+++ b/demos/declarative/flickr/mobile/Button.qml
@@ -8,7 +8,7 @@ Item {
property string text
BorderImage {
- id: Image
+ id: ButtonImage
source: "images/toolbutton.sci"
width: Container.width; height: Container.height
}
@@ -19,19 +19,19 @@ Item {
width: Container.width; height: Container.height
}
MouseRegion {
- id: MouseRegion
- anchors.fill: Image
+ id: MyMouseRegion
+ anchors.fill: ButtonImage
onClicked: { Container.clicked(); }
}
Text {
color: "white"
- anchors.centerIn: Image; font.bold: true
+ anchors.centerIn: ButtonImage; font.bold: true
text: Container.text; style: "Raised"; styleColor: "black"
}
states: [
State {
name: "Pressed"
- when: MouseRegion.pressed == true
+ when: MyMouseRegion.pressed == true
PropertyChanges {
target: Pressed
opacity: 1
diff --git a/demos/declarative/flickr/mobile/ImageDetails.qml b/demos/declarative/flickr/mobile/ImageDetails.qml
index 5f16a24..617fe40 100644
--- a/demos/declarative/flickr/mobile/ImageDetails.qml
+++ b/demos/declarative/flickr/mobile/ImageDetails.qml
@@ -19,7 +19,7 @@ Flipable {
signal closed
transform: Rotation {
- id: Rotation
+ id: ItemRotation
origin.x: Container.width / 2;
axis.y: 1; axis.z: 0
}
@@ -116,7 +116,7 @@ Flipable {
states: State {
name: "Back"
- PropertyChanges { target: Rotation; angle: 180 }
+ PropertyChanges { target: ItemRotation; angle: 180 }
}
transitions: Transition {