aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/demos/stocqt/content/Button.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2012-12-13 19:16:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-13 20:43:59 +0100
commit93c7cf2cbc650d1590037d86f8eba6d0be029159 (patch)
treee54a77727f885789222b3b6588b2015862a3f559 /examples/quick/demos/stocqt/content/Button.qml
parent47d97fe72bff0bfd4e2a32ecb7850502cf0a82d5 (diff)
Clean up the StockQt demo
I cleaned up the whitespace, property declarations and removed some console output. No changes to the functionality or design. Change-Id: I499f6d061e43bf2e187eebc026858b3abd21a9b0 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'examples/quick/demos/stocqt/content/Button.qml')
-rw-r--r--examples/quick/demos/stocqt/content/Button.qml36
1 files changed, 18 insertions, 18 deletions
diff --git a/examples/quick/demos/stocqt/content/Button.qml b/examples/quick/demos/stocqt/content/Button.qml
index 2cdd187629..0051d814aa 100644
--- a/examples/quick/demos/stocqt/content/Button.qml
+++ b/examples/quick/demos/stocqt/content/Button.qml
@@ -41,22 +41,22 @@
import QtQuick 2.0
Rectangle {
- id:button
- signal clicked
- property alias text: txt.text
- property bool buttonEnabled:false
- radius:5
- width: Math.max(64,txt.width+16);
- height: 32
- color: buttonEnabled ? "steelblue" : "gray"
- MouseArea {
- anchors.fill:parent
- onClicked: button.clicked();
- }
- Text {
- anchors.centerIn: parent
- font.pixelSize: 18
- color:"#ecc089"
- id: txt
- }
+ id: button
+ signal clicked
+ property alias text: txt.text
+ property bool buttonEnabled: false
+ radius: 5
+ width: Math.max(64, txt.width + 16)
+ height: 32
+ color: buttonEnabled ? "steelblue" : "gray"
+ MouseArea {
+ anchors.fill: parent
+ onClicked: button.clicked()
+ }
+ Text {
+ anchors.centerIn: parent
+ font.pixelSize: 18
+ color: "#ecc089"
+ id: txt
+ }
}