aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2024-04-22 14:48:33 +0200
committerHenning Gründl <henning.gruendl@qt.io>2024-04-22 12:54:10 +0000
commitbb6110082a51db2a0c9bea8ca9390840b6c4c431 (patch)
tree87c0c141fb8f6d02fd9d862878c501a42fe66a20 /share/qtcreator
parentdad555a088062f585e2c15370d8fe8963801358e (diff)
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>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml
index 8b1d201c04..b640d82d0b 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml
@@ -75,9 +75,14 @@ Section {
}
}
- PropertyLabel { text: qsTr("Visibility") }
+ PropertyLabel {
+ text: qsTr("Visibility")
+ visible: root.hasDesignerEffect
+ }
SecondColumnLayout {
+ visible: root.hasDesignerEffect
+
CheckBox {
text: qsTr("Visible")
implicitWidth: StudioTheme.Values.twoControlColumnWidth
@@ -90,6 +95,7 @@ Section {
}
Item {
+ visible: root.hasDesignerEffect
width: 1
height: StudioTheme.Values.sectionHeadSpacerHeight
}
@@ -444,6 +450,7 @@ Section {
}
Item {
+ visible: root.hasDesignerEffect
width: 1
height: StudioTheme.Values.sectionHeadSpacerHeight
}