aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-07-02 11:34:18 +0200
committerTim Jenssen <tim.jenssen@qt.io>2019-07-02 16:22:39 +0000
commit76d0a16a8157b3c82afbeb5456cb2e589ad1111b (patch)
treebb0ddbea2a639b202def0ed0db228be853313a41 /share
parent1a4aedf5681ee175d2e2cb46778c3b31bd94e949 (diff)
QmlDesigner: Hide label if text is empty
Otherwise we get padding on the left. Change-Id: I62d78bf988cefe8c91f55268a71c70094f163d5d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
index f75b54d2610..5ec29bbe2e3 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
@@ -65,6 +65,7 @@ T.CheckBox {
text: myCheckBox.text
font: myCheckBox.font
color: StudioTheme.Values.themeTextColor
+ visible: text !== ""
}
ActionIndicator {