aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2024-04-24 12:10:19 +0200
committerHenning Gründl <henning.gruendl@qt.io>2024-04-24 10:28:14 +0000
commitd0513480697d2387670d98c2166f4cb46698ec21 (patch)
treeaa92307d1447ad7bdb91d3a307ab736599408da4
parent3b1acea866d9195ecfae1c89832115829b73e2e9 (diff)
QmlDesigner: Add show behind to EffectsSection
* Add show behind property to DropShadow EffectsSection * Change visible property name in EffectsSection Task-number: QDS-12587 Change-Id: I338ea4370eeb725d54a06cc021f061c73e8aa837 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml37
1 files changed, 28 insertions, 9 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml
index 056bd5fd60..2b7543f1d9 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml
@@ -76,7 +76,7 @@ Section {
}
PropertyLabel {
- text: qsTr("Visibility")
+ text: qsTr("Visible")
visible: root.hasDesignerEffect
}
@@ -84,7 +84,6 @@ Section {
visible: root.hasDesignerEffect
CheckBox {
- text: qsTr("Visible")
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
backendValue: root.effectNodeWrapper.properties.visible
@@ -193,11 +192,10 @@ Section {
SectionLayout {
- PropertyLabel { text: qsTr("Visibility") }
+ PropertyLabel { text: qsTr("Visible") }
SecondColumnLayout {
CheckBox {
- text: qsTr("Visible")
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
backendValue: root.effectNodeWrapper.properties.layerBlurVisible
@@ -234,11 +232,10 @@ Section {
SectionLayout {
- PropertyLabel { text: qsTr("Visibility") }
+ PropertyLabel { text: qsTr("Visible") }
SecondColumnLayout {
CheckBox {
- text: qsTr("Visible")
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
backendValue: root.effectNodeWrapper.properties.backgroundBlurVisible
@@ -346,7 +343,10 @@ Section {
anchors.verticalCenter: parent.verticalCenter
// When an item is selected, update the backend.
- onActivated: modelNodeBackend.changeType(modelData, shadowComboBox.currentValue)
+ onActivated: {
+ delegate.wrapper.properties.showBehind.resetValue()
+ modelNodeBackend.changeType(modelData, shadowComboBox.currentValue)
+ }
// Set the initial currentIndex to the value stored in the backend.
Component.onCompleted: {
shadowComboBox.currentIndex = shadowComboBox.indexOfValue(modelNodeBackend.simplifiedTypeName(modelData))
@@ -359,12 +359,13 @@ Section {
}
SectionLayout {
+ id: controlContainer
+ property bool isDropShadow: shadowComboBox.currentValue === "DesignDropShadow"
- PropertyLabel { text: qsTr("Visibility") }
+ PropertyLabel { text: qsTr("Visible") }
SecondColumnLayout {
CheckBox {
- text: qsTr("Visible")
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
backendValue: delegate.wrapper.properties.visible
@@ -452,6 +453,24 @@ Section {
ExpandingSpacer {}
}
+
+
+ PropertyLabel {
+ visible: controlContainer.isDropShadow
+ text: qsTr("Show behind")
+ }
+
+ SecondColumnLayout {
+ visible: controlContainer.isDropShadow
+
+ CheckBox {
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
+ backendValue: delegate.wrapper.properties.showBehind
+ }
+
+ ExpandingSpacer {}
+ }
}
}
}