diff options
Diffstat (limited to 'examples/quick/demos/stocqt/content/CheckBox.qml')
-rw-r--r-- | examples/quick/demos/stocqt/content/CheckBox.qml | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/examples/quick/demos/stocqt/content/CheckBox.qml b/examples/quick/demos/stocqt/content/CheckBox.qml index 1e7dcf7c74..5d9accaf7f 100644 --- a/examples/quick/demos/stocqt/content/CheckBox.qml +++ b/examples/quick/demos/stocqt/content/CheckBox.qml @@ -42,10 +42,9 @@ import QtQuick 2.0 Item { id: button - property alias text: txt.text property bool buttonEnabled: true - width: 140 - height: 25 + width: 30 + height: 30 x: 5 MouseArea { id: mouse @@ -59,29 +58,20 @@ Item { } Rectangle { id: checkbox - width: 23 - height: 23 + width: 30 + height: 30 anchors.left: parent.left - border.color: "#76644A" + border.color: "#999999" border.width: 1 antialiasing: true radius: 2 color: "transparent" Rectangle { anchors.fill: parent - anchors.margins: 4 + anchors.margins: 5 antialiasing: true radius: 1 - color: mouse.pressed || buttonEnabled ? "#76644A" : "transparent" + color: mouse.pressed || buttonEnabled ? "#999999" : "transparent" } } - Text { - id: txt - anchors.left: checkbox.right - anchors.leftMargin: 4 - anchors.verticalCenter: parent.verticalCenter - text: "Close " - color: "#ecc089" - font.pixelSize: 18 - } } |