diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-09-07 02:03:37 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-09-07 02:03:37 (GMT) |
commit | 997cec43fd789917fa038b3a963d2ad19d3bd682 (patch) | |
tree | f83b2e5b1bbc3df8e682a6b32b79463333afe82b /demos/declarative | |
parent | 3c9ee8213a8ac283b596d93d10365a2e928199f8 (diff) | |
download | Qt-997cec43fd789917fa038b3a963d2ad19d3bd682.zip Qt-997cec43fd789917fa038b3a963d2ad19d3bd682.tar.gz Qt-997cec43fd789917fa038b3a963d2ad19d3bd682.tar.bz2 |
Get calculator demo running again.
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/calculator/CalcButton.qml | 4 |
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 } }, |