diff options
Diffstat (limited to 'demos/declarative/flickr/common/MediaButton.qml')
-rw-r--r-- | demos/declarative/flickr/common/MediaButton.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/declarative/flickr/common/MediaButton.qml b/demos/declarative/flickr/common/MediaButton.qml index 0ffd596..e1e09e8 100644 --- a/demos/declarative/flickr/common/MediaButton.qml +++ b/demos/declarative/flickr/common/MediaButton.qml @@ -8,7 +8,7 @@ Item { property string text Image { - id: Image + id: ButtonImage source: "pics/button.png" } Image { @@ -17,21 +17,21 @@ Item { opacity: 0 } MouseRegion { - id: MouseRegion - anchors.fill: Image + id: MyMouseRegion + anchors.fill: ButtonImage onClicked: { Container.clicked(); } } Text { font.bold: true color: "white" - anchors.centerIn: Image + anchors.centerIn: ButtonImage text: Container.text } - width: Image.width + width: ButtonImage.width states: [ State { name: "Pressed" - when: MouseRegion.pressed == true + when: MyMouseRegion.pressed == true PropertyChanges { target: Pressed opacity: 1 |