aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml25
1 files changed, 11 insertions, 14 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
index 5ec29bbe2e..0faaf7e0a8 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/CheckBox.qml
@@ -57,23 +57,9 @@ T.CheckBox {
hoverEnabled: true
activeFocusOnTab: false
- contentItem: T.Label {
- id: checkBoxLabel
- leftPadding: 0
- rightPadding: 0
- verticalAlignment: Text.AlignVCenter
- text: myCheckBox.text
- font: myCheckBox.font
- color: StudioTheme.Values.themeTextColor
- visible: text !== ""
- }
-
ActionIndicator {
id: actionIndicator
myControl: myCheckBox // TODO global hover issue. Can be solved with extra property in ActionIndicator
-
- x: checkBoxLabel.visible ? checkBoxLabel.contentWidth + myCheckBox.spacing : 0
- y: 0
width: actionIndicator.visible ? __actionIndicatorWidth : 0
height: actionIndicator.visible ? __actionIndicatorHeight : 0
}
@@ -113,6 +99,17 @@ T.CheckBox {
}
}
+ contentItem: T.Label {
+ id: checkBoxLabel
+ leftPadding: checkBoxBackground.x + checkBoxBackground.width + myCheckBox.spacing
+ rightPadding: 0
+ verticalAlignment: Text.AlignVCenter
+ text: myCheckBox.text
+ font: myCheckBox.font
+ color: StudioTheme.Values.themeTextColor
+ visible: text !== ""
+ }
+
states: [
State {
name: "default"