From 6e93a32b5286cb6e2179a810ee5966abe5015f31 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Mon, 7 Sep 2009 10:06:01 +1000 Subject: Get recipes example running again. --- examples/declarative/listview/content/MediaButton.qml | 12 ++++++------ 1 file 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 -- cgit v0.12