From 997cec43fd789917fa038b3a963d2ad19d3bd682 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Mon, 7 Sep 2009 12:03:37 +1000 Subject: Get calculator demo running again. --- demos/declarative/calculator/CalcButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/declarative/calculator/CalcButton.qml b/demos/declarative/calculator/CalcButton.qml index 0fb5412..966c8e4 100644 --- a/demos/declarative/calculator/CalcButton.qml +++ b/demos/declarative/calculator/CalcButton.qml @@ -16,7 +16,7 @@ Rectangle { Text { anchors.centerIn: parent; text: operation; color: Palette.buttonText } MouseRegion { - id: MouseRegion + id: ClickRegion anchors.fill: parent onClicked: { doOp(operation); @@ -28,7 +28,7 @@ Rectangle { states: [ State { - name: "Pressed"; when: MouseRegion.pressed == true + name: "Pressed"; when: ClickRegion.pressed == true PropertyChanges { target: G1; color: Palette.dark } PropertyChanges { target: G2; color: Palette.button } }, -- cgit v0.12