aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2014-08-06 13:07:14 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2014-08-06 14:34:45 +0200
commitb625f3983dff03da9dd83cedad948f446c6d0cb3 (patch)
tree6e609c4cada6d733edcdc6355d8dc5b5e9e302f2 /share
parent3e1234c81a56260f475b88fa9f79fecab50ff53f (diff)
QmlDesigner.PropertyEditor: Fix CheckBox styling
We should use the spacing property. Change-Id: Ie0b6a58bb4e7de19a09a90fd07a7b41f52790ce7 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CheckBox.qml4
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CustomCheckBoxStyle.qml2
2 files changed, 1 insertions, 5 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CheckBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CheckBox.qml
index d2df7ed73a..6d89232885 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CheckBox.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CheckBox.qml
@@ -39,10 +39,6 @@ Controls.CheckBox {
property color highlightColor: "orange"
property color textColor: colorLogic.textColor
- onTextChanged: {
- if (text.charAt(0) !== " ")
- text = " " + text
- }
property variant backendValue
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CustomCheckBoxStyle.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CustomCheckBoxStyle.qml
index 85b27d8556..816e15ac51 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CustomCheckBoxStyle.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/CustomCheckBoxStyle.qml
@@ -32,7 +32,7 @@ import QtQuick.Controls 1.1 as Controls
import QtQuick.Controls.Styles 1.1
CheckBoxStyle {
- spacing: 8
+ spacing: 24
label: Controls.Label { text: control.text ; color: checkBox.textColor }
indicator: Item {
implicitWidth: 16