From c3334f105a2ceee67757c7f3f2ef155d5ca97688 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Tue, 11 Jan 2022 16:13:44 +0100 Subject: [PATCH] QmlDesigner: Add renderTypeQuality property * Add renderTypeQuality property in TextExtraSection * Add renderTypeQuality to bannedProperties in all qul files Task-number: QDS-5935 Change-Id: Ie22252a7b19704015834a0e413362ad84179b1e3 Reviewed-by: Reviewed-by: Thomas Hartmann --- .../HelperWidgets/TextExtrasSection.qml | 25 +++++++++++++++++++ share/qtcreator/qmldesigner/qt4mcu/qul-14.qml | 2 +- share/qtcreator/qmldesigner/qt4mcu/qul-17.qml | 2 +- share/qtcreator/qmldesigner/qt4mcu/qul-18.qml | 2 +- share/qtcreator/qmldesigner/qt4mcu/qul-19.qml | 2 +- 5 files changed, 29 insertions(+), 4 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/TextExtrasSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/TextExtrasSection.qml index d9dab055e2b..b7381d05d7d 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/TextExtrasSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/TextExtrasSection.qml @@ -137,6 +137,31 @@ Section { ExpandingSpacer {} } + PropertyLabel { + text: qsTr("Render type quality") + tooltip: qsTr("Overrides the default rendering type quality for this component.") + blockedByTemplate: !root.isBackendValueAvailable("renderTypeQuality") + enabled: backendValues.renderType !== undefined + ? backendValues.renderType.enumeration === "QtRendering" + : false + } + + SecondColumnLayout { + ComboBox { + implicitWidth: StudioTheme.Values.singleControlColumnWidth + + StudioTheme.Values.actionIndicatorWidth + width: implicitWidth + scope: "Text" + model: ["DefaultRenderTypeQuality", "LowRenderTypeQuality", "NormalRenderTypeQuality", + "HighRenderTypeQuality", "VeryHighRenderTypeQuality"] + backendValue: backendValues.renderTypeQuality + enabled: root.isBackendValueAvailable("renderTypeQuality") + && backendValues.renderType.enumeration === "QtRendering" + } + + ExpandingSpacer {} + } + PropertyLabel { visible: root.showLineHeight text: qsTr("Line height mode") diff --git a/share/qtcreator/qmldesigner/qt4mcu/qul-14.qml b/share/qtcreator/qmldesigner/qt4mcu/qul-14.qml index cebc31f67c0..03110763f5b 100644 --- a/share/qtcreator/qmldesigner/qt4mcu/qul-14.qml +++ b/share/qtcreator/qmldesigner/qt4mcu/qul-14.qml @@ -118,7 +118,7 @@ VersionData { allowedProperties: ["rotation", "scale", "transformOrigin"] bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style", "styleColor", "minimumPointSize", "minimumPixelSize", - "fontSizeMode", "renderType", "textFormat", "maximumLineCount"] + "fontSizeMode", "renderType", "renderTypeQuality", "textFormat", "maximumLineCount"] } //Padding is not an actual item, but rather set of properties in Text diff --git a/share/qtcreator/qmldesigner/qt4mcu/qul-17.qml b/share/qtcreator/qmldesigner/qt4mcu/qul-17.qml index b8dc8d3d832..765c54bd9d7 100644 --- a/share/qtcreator/qmldesigner/qt4mcu/qul-17.qml +++ b/share/qtcreator/qmldesigner/qt4mcu/qul-17.qml @@ -120,7 +120,7 @@ VersionData { allowedProperties: ["rotation", "scale", "transformOrigin"] bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style", "styleColor", "minimumPointSize", "minimumPixelSize", - "fontSizeMode", "renderType", "textFormat", "maximumLineCount"] + "fontSizeMode", "renderType", "renderTypeQuality", "textFormat", "maximumLineCount"] } //Padding is not an actual item, but rather set of properties in Text diff --git a/share/qtcreator/qmldesigner/qt4mcu/qul-18.qml b/share/qtcreator/qmldesigner/qt4mcu/qul-18.qml index 5f591093742..4c0cf5d4b9f 100644 --- a/share/qtcreator/qmldesigner/qt4mcu/qul-18.qml +++ b/share/qtcreator/qmldesigner/qt4mcu/qul-18.qml @@ -121,7 +121,7 @@ VersionData { allowedProperties: ["rotation", "scale", "transformOrigin"] bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style", "styleColor", "minimumPointSize", "minimumPixelSize", - "fontSizeMode", "renderType", "textFormat", "maximumLineCount"] + "fontSizeMode", "renderType", "renderTypeQuality", "textFormat", "maximumLineCount"] } //Padding is not an actual item, but rather set of properties in Text diff --git a/share/qtcreator/qmldesigner/qt4mcu/qul-19.qml b/share/qtcreator/qmldesigner/qt4mcu/qul-19.qml index 3c0c136559c..be473bc8caf 100644 --- a/share/qtcreator/qmldesigner/qt4mcu/qul-19.qml +++ b/share/qtcreator/qmldesigner/qt4mcu/qul-19.qml @@ -121,7 +121,7 @@ VersionData { allowedProperties: ["rotation", "scale", "transformOrigin"] bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style", "styleColor", "minimumPointSize", "minimumPixelSize", - "fontSizeMode", "renderType", "textFormat", "maximumLineCount"] + "fontSizeMode", "renderType", "renderTypeQuality", "textFormat", "maximumLineCount"] } //Padding is not an actual item, but rather set of properties in Text