diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-10-06 02:28:42 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-10-06 02:28:42 (GMT) |
commit | c3abf1a4ae82a57bbc6cc324fa6f9a99615ab066 (patch) | |
tree | 34beb32ce99c5b8e23ae506756ed4ad6590c87db /demos/declarative/flickr/mobile/Button.qml | |
parent | dab7f1079a40a1beb5555c8ffaaf8b2c73781596 (diff) | |
download | Qt-c3abf1a4ae82a57bbc6cc324fa6f9a99615ab066.zip Qt-c3abf1a4ae82a57bbc6cc324fa6f9a99615ab066.tar.gz Qt-c3abf1a4ae82a57bbc6cc324fa6f9a99615ab066.tar.bz2 |
lowercase ids
Diffstat (limited to 'demos/declarative/flickr/mobile/Button.qml')
-rw-r--r-- | demos/declarative/flickr/mobile/Button.qml | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/demos/declarative/flickr/mobile/Button.qml b/demos/declarative/flickr/mobile/Button.qml index 6887240..a4a96d4 100644 --- a/demos/declarative/flickr/mobile/Button.qml +++ b/demos/declarative/flickr/mobile/Button.qml @@ -1,41 +1,38 @@ import Qt 4.6 Item { - id: Container + id: container signal clicked property string text BorderImage { - id: ButtonImage + id: buttonImage source: "images/toolbutton.sci" - width: Container.width; height: Container.height + width: container.width; height: container.height } BorderImage { - id: Pressed + id: pressed opacity: 0 source: "images/toolbutton.sci" - width: Container.width; height: Container.height + width: container.width; height: container.height } MouseRegion { - id: MyMouseRegion - anchors.fill: ButtonImage - onClicked: { Container.clicked(); } + id: mouseRegion + anchors.fill: buttonImage + onClicked: { container.clicked(); } } Text { color: "white" - anchors.centerIn: ButtonImage; font.bold: true - text: Container.text; style: "Raised"; styleColor: "black" + anchors.centerIn: buttonImage; font.bold: true + text: container.text; style: "Raised"; styleColor: "black" } states: [ State { name: "Pressed" - when: MyMouseRegion.pressed == true - PropertyChanges { - target: Pressed - opacity: 1 - } + when: mouseRegion.pressed == true + PropertyChanges { target: pressed; opacity: 1 } } ] } |