summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/mobile/Button.qml
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/Button.qml
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/Button.qml')
-rw-r--r--demos/declarative/flickr/mobile/Button.qml10
1 files changed, 5 insertions, 5 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