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: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2022-01-11 16:13:44 +01:00
committed by Henning Gründl
parent 637d1c167b
commit c3334f105a
5 changed files with 29 additions and 4 deletions

View File

@@ -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")

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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