diff options
Diffstat (limited to 'demos/declarative/calculator/CalcButton.qml')
-rw-r--r-- | demos/declarative/calculator/CalcButton.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/declarative/calculator/CalcButton.qml b/demos/declarative/calculator/CalcButton.qml index 966c8e485f..55b5f0c413 100644 --- a/demos/declarative/calculator/CalcButton.qml +++ b/demos/declarative/calculator/CalcButton.qml @@ -1,9 +1,9 @@ import Qt 4.6 Rectangle { - property string operation - property bool toggable : false - property bool toggled : false + property alias operation: Label.text + property bool toggable: false + property bool toggled: false signal clicked id: Button; width: 50; height: 30 @@ -13,7 +13,7 @@ Rectangle { GradientStop { id: G2; position: 1.0; color: Palette.button } } - Text { anchors.centerIn: parent; text: operation; color: Palette.buttonText } + Text { id: Label; anchors.centerIn: parent; color: Palette.buttonText } MouseRegion { id: ClickRegion |