From d83e7d3d3d6c4f436a774e217d42d5a0c275517b Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Mon, 22 Apr 2024 17:09:16 +0200 Subject: QmlDesigner: Add proper ranges in EffectsSection Change-Id: If3f8b395c9a63c535f43be84d7a855196c67769e Reviewed-by: Thomas Hartmann --- .../propertyEditorQmlSources/QtQuick/EffectsSection.qml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml index b640d82d0b..056bd5fd60 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/EffectsSection.qml @@ -213,6 +213,8 @@ Section { implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth backendValue: root.effectNodeWrapper.properties.layerBlurRadius + minimumValue: 0 + maximumValue: 250 } ExpandingSpacer {} @@ -252,6 +254,8 @@ Section { implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth backendValue: root.effectNodeWrapper.properties.backgroundBlurRadius + minimumValue: 0 + maximumValue: 250 } ExpandingSpacer {} @@ -376,6 +380,8 @@ Section { implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth backendValue: delegate.wrapper.properties.blur + minimumValue: 0 + maximumValue: 250 } ExpandingSpacer {} @@ -392,6 +398,8 @@ Section { + StudioTheme.Values.actionIndicatorWidth backendValue: delegate.wrapper.properties.spread enabled: modelNodeBackend.isInstanceOf("Rectangle") + minimumValue: -2048 + maximumValue: 2048 } ExpandingSpacer {} @@ -414,8 +422,8 @@ Section { implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth backendValue: delegate.wrapper.properties.offsetX - maximumValue: 0xffff minimumValue: -0xffff + maximumValue: 0xffff } Spacer { implicitWidth: StudioTheme.Values.controlLabelGap } @@ -431,8 +439,8 @@ Section { implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth backendValue: delegate.wrapper.properties.offsetY - maximumValue: 0xffff minimumValue: -0xffff + maximumValue: 0xffff } Spacer { implicitWidth: StudioTheme.Values.controlLabelGap } -- cgit v1.2.3