From bb6110082a51db2a0c9bea8ca9390840b6c4c431 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Mon, 22 Apr 2024 14:48:33 +0200 Subject: [PATCH] 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 --- .../propertyEditorQmlSources/QtQuick/EffectsSection.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml index 8b1d201c048..b640d82d0ba 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 }