diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2012-12-13 19:16:13 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-13 20:43:59 +0100 |
commit | 93c7cf2cbc650d1590037d86f8eba6d0be029159 (patch) | |
tree | e54a77727f885789222b3b6588b2015862a3f559 /examples/quick/demos/stocqt/content/CheckBox.qml | |
parent | 47d97fe72bff0bfd4e2a32ecb7850502cf0a82d5 (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/CheckBox.qml')
-rw-r--r-- | examples/quick/demos/stocqt/content/CheckBox.qml | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/examples/quick/demos/stocqt/content/CheckBox.qml b/examples/quick/demos/stocqt/content/CheckBox.qml index fb0939045a..1f21cc21c4 100644 --- a/examples/quick/demos/stocqt/content/CheckBox.qml +++ b/examples/quick/demos/stocqt/content/CheckBox.qml @@ -41,32 +41,32 @@ import QtQuick 2.0 Row { - id:button - property alias text: txt.text - property bool buttonEnabled:true - width: txt.width + 30 - height:25 - spacing: 5 - x: 5 - Text { - id: txt - text:"Close " - color:"#76644A" - font.pixelSize:18 - } - Rectangle { - width: 25 + id: button + property alias text: txt.text + property bool buttonEnabled: true + width: txt.width + 30 height: 25 - radius:5 - color:buttonEnabled ? "steelblue" : "gray" - MouseArea { - anchors.fill:parent - onClicked: { - if (buttonEnabled) - buttonEnabled = false; - else - buttonEnabled = true; + spacing: 5 + x: 5 + Text { + id: txt + text: "Close " + color: "#76644A" + font.pixelSize: 18 + } + Rectangle { + width: 25 + height: 25 + radius: 5 + color: buttonEnabled ? "steelblue" : "gray" + MouseArea { + anchors.fill: parent + onClicked: { + if (buttonEnabled) + buttonEnabled = false; + else + buttonEnabled = true; + } } } - } } |