aboutsummaryrefslogtreecommitdiffstats
path: root/examples/demos/samegame/content/Button.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-03-20 16:06:37 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-22 09:41:26 +0100
commit23d56db0c8e156fb19cec6a155105493d13a4f9f (patch)
treeb370fa5139ea2812e98bba516559c46a08ad4bb8 /examples/demos/samegame/content/Button.qml
parent58e064a5dff1289bff0d304ae8798b43d67587f7 (diff)
Update samegame demo to new layout
Change-Id: Ib9cf4fb29022c63ce24f7b8c7ca4ff17c149a9cb Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'examples/demos/samegame/content/Button.qml')
-rw-r--r--examples/demos/samegame/content/Button.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/demos/samegame/content/Button.qml b/examples/demos/samegame/content/Button.qml
index 2d1a993226..44da525144 100644
--- a/examples/demos/samegame/content/Button.qml
+++ b/examples/demos/samegame/content/Button.qml
@@ -45,6 +45,7 @@ Rectangle {
id: container
property string text: "Button"
+ property int fontSize: 24
signal clicked
@@ -70,6 +71,6 @@ Rectangle {
MouseArea { id: mouseArea; anchors.fill: parent; onClicked: container.clicked() }
Text {
- id: buttonLabel; text: container.text; anchors.centerIn: container; color: activePalette.buttonText; font.pixelSize: 24
+ id: buttonLabel; text: container.text; anchors.centerIn: container; color: activePalette.buttonText; font.pixelSize: container.fontSize
}
}