diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-09-07 00:06:01 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-09-07 00:06:01 (GMT) |
commit | 6e93a32b5286cb6e2179a810ee5966abe5015f31 (patch) | |
tree | 01287d1bdf960462a32714e2f25451794ff554fb | |
parent | 4f6d883c1869104d75cda341738002f18ef3547f (diff) | |
download | Qt-6e93a32b5286cb6e2179a810ee5966abe5015f31.zip Qt-6e93a32b5286cb6e2179a810ee5966abe5015f31.tar.gz Qt-6e93a32b5286cb6e2179a810ee5966abe5015f31.tar.bz2 |
Get recipes example running again.
-rw-r--r-- | examples/declarative/listview/content/MediaButton.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml index 599452d..3b0ef1e 100644 --- a/examples/declarative/listview/content/MediaButton.qml +++ b/examples/declarative/listview/content/MediaButton.qml @@ -6,7 +6,7 @@ Item { id: Container Image { - id: Image + id: Normal source: "pics/button.png" } Image { @@ -15,21 +15,21 @@ Item { opacity: 0 } MouseRegion { - id: MouseRegion - anchors.fill: Image + id: ClickRegion + anchors.fill: Normal onClicked: { Container.clicked(); } } Text { font.bold: true color: "white" - anchors.centerIn: Image + anchors.centerIn: Normal text: Container.text } - width: Image.width + width: Normal.width states: [ State { name: "Pressed" - when: MouseRegion.pressed == true + when: ClickRegion.pressed == true PropertyChanges { target: Pressed opacity: 1 |