forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
637d1c167b
commit
c3334f105a
@@ -137,6 +137,31 @@ Section {
|
|||||||
ExpandingSpacer {}
|
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 {
|
PropertyLabel {
|
||||||
visible: root.showLineHeight
|
visible: root.showLineHeight
|
||||||
text: qsTr("Line height mode")
|
text: qsTr("Line height mode")
|
||||||
|
@@ -118,7 +118,7 @@ VersionData {
|
|||||||
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
||||||
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
||||||
"styleColor", "minimumPointSize", "minimumPixelSize",
|
"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
|
//Padding is not an actual item, but rather set of properties in Text
|
||||||
|
@@ -120,7 +120,7 @@ VersionData {
|
|||||||
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
||||||
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
||||||
"styleColor", "minimumPointSize", "minimumPixelSize",
|
"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
|
//Padding is not an actual item, but rather set of properties in Text
|
||||||
|
@@ -121,7 +121,7 @@ VersionData {
|
|||||||
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
||||||
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
||||||
"styleColor", "minimumPointSize", "minimumPixelSize",
|
"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
|
//Padding is not an actual item, but rather set of properties in Text
|
||||||
|
@@ -121,7 +121,7 @@ VersionData {
|
|||||||
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
||||||
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
bannedProperties: ["elide", "lineHeight", "lineHeightMode", "wrapMode", "style",
|
||||||
"styleColor", "minimumPointSize", "minimumPixelSize",
|
"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
|
//Padding is not an actual item, but rather set of properties in Text
|
||||||
|
Reference in New Issue
Block a user