From 3612039365e3bd7f2e714c1f61d2665c2fbbd315 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Fri, 22 Sep 2023 17:09:04 +0200 Subject: [PATCH] QmlDesigner: Remove smooth from image specifics Remove the smooth property from image specifics as it is also available in the advanced section. Task-number: QDS-8726 Change-Id: I842a7978e65d4578434b158340484649abe4956f Reviewed-by: Qt CI Patch Build Bot Reviewed-by: Reviewed-by: Pranta Ghosh Dastider Reviewed-by: Thomas Hartmann --- .../QtQuick/AdvancedSection.qml | 2 +- .../QtQuick/BorderImageSpecifics.qml | 18 ------------------ .../imports/HelperWidgets/ImageSection.qml | 18 ------------------ 3 files changed, 1 insertion(+), 37 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml index e9be2285c52..f88defbff56 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml @@ -33,7 +33,7 @@ Section { PropertyLabel { text: qsTr("Smooth") - tooltip: qsTr("Uses smooth filtering when the image is scaled or transformed.") + tooltip: qsTr("Toggles if the smoothing is performed using linear interpolation method. Keeping it unchecked would follow non-smooth method using nearest neighbor. It is mostly applicable on image based items. ") blockedByTemplate: !backendValues.smooth.isAvailable } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml index 0862b7e6d87..63f3906658d 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml @@ -216,24 +216,6 @@ Column { ExpandingSpacer {} } - PropertyLabel { - text: qsTr("Smooth") - tooltip: qsTr("Toggles if the image should be filtered smoothly when transformed.") - blockedByTemplate: !backendValues.smooth.isAvailable - } - - SecondColumnLayout { - CheckBox { - text: backendValues.smooth.valueToString - implicitWidth: StudioTheme.Values.twoControlColumnWidth - + StudioTheme.Values.actionIndicatorWidth - backendValue: backendValues.smooth - enabled: backendValue.isAvailable - } - - ExpandingSpacer {} - } - PropertyLabel { text: qsTr("Cache") tooltip: qsTr("Toggles if the image is saved to the cache memory.") diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImageSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImageSection.qml index 520a47f0ba3..d0ce0a109ce 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImageSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ImageSection.qml @@ -224,23 +224,5 @@ Section { ExpandingSpacer {} } - - PropertyLabel { - text: qsTr("Smooth") - tooltip: qsTr("Uses smooth filtering when the image is scaled or transformed.") - blockedByTemplate: !backendValues.smooth.isAvailable - } - - SecondColumnLayout { - CheckBox { - text: backendValues.smooth.valueToString - implicitWidth: StudioTheme.Values.twoControlColumnWidth - + StudioTheme.Values.actionIndicatorWidth - backendValue: backendValues.smooth - enabled: backendValue.isAvailable - } - - ExpandingSpacer {} - } } }