QmlDesigner: Hide visible CheckBox EffectsSection

Hide the visible CheckBox in the EffectsSection when there is no effect
currently added to the item.

Change-Id: I68dede067a92bf5f733c582424ed5b2c2745e651
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2024-04-22 14:48:33 +02:00
committed by Henning Gründl
parent dad555a088
commit bb6110082a

View File

@@ -75,9 +75,14 @@ Section {
} }
} }
PropertyLabel { text: qsTr("Visibility") } PropertyLabel {
text: qsTr("Visibility")
visible: root.hasDesignerEffect
}
SecondColumnLayout { SecondColumnLayout {
visible: root.hasDesignerEffect
CheckBox { CheckBox {
text: qsTr("Visible") text: qsTr("Visible")
implicitWidth: StudioTheme.Values.twoControlColumnWidth implicitWidth: StudioTheme.Values.twoControlColumnWidth
@@ -90,6 +95,7 @@ Section {
} }
Item { Item {
visible: root.hasDesignerEffect
width: 1 width: 1
height: StudioTheme.Values.sectionHeadSpacerHeight height: StudioTheme.Values.sectionHeadSpacerHeight
} }
@@ -444,6 +450,7 @@ Section {
} }
Item { Item {
visible: root.hasDesignerEffect
width: 1 width: 1
height: StudioTheme.Values.sectionHeadSpacerHeight height: StudioTheme.Values.sectionHeadSpacerHeight
} }