summaryrefslogtreecommitdiffstats
path: root/demos/declarative/calculator/CalcButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/calculator/CalcButton.qml')
-rw-r--r--demos/declarative/calculator/CalcButton.qml4
1 files 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 }
},