summaryrefslogtreecommitdiffstats
path: root/demos/declarative/calculator/CalcButton.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-10-01 03:03:27 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-10-01 03:03:27 (GMT)
commit7e289c9778600e481783766c6fefb7c06462bd8d (patch)
tree73be6303fb831c149def6a09fae16aae556afb17 /demos/declarative/calculator/CalcButton.qml
parent4853daab68b9a581aadf40dedd1353b963d1b07f (diff)
downloadQt-7e289c9778600e481783766c6fefb7c06462bd8d.zip
Qt-7e289c9778600e481783766c6fefb7c06462bd8d.tar.gz
Qt-7e289c9778600e481783766c6fefb7c06462bd8d.tar.bz2
* use alias in CalcButton.qml
* do not set a z value (broken with positioners atm)
Diffstat (limited to 'demos/declarative/calculator/CalcButton.qml')
-rw-r--r--demos/declarative/calculator/CalcButton.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/declarative/calculator/CalcButton.qml b/demos/declarative/calculator/CalcButton.qml
index 966c8e4..55b5f0c 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