diff options
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontExtrasSection.qml')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontExtrasSection.qml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontExtrasSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontExtrasSection.qml index 9084df11ab..8cf3c0fedc 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontExtrasSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontExtrasSection.qml @@ -42,6 +42,13 @@ Section { return backendValues[root.fontName + "_" + name] } + function isBackendValueAvailable(name) { + if (backendValues[name] !== undefined) + return backendValues[name].isAvailable + + return false + } + SectionLayout { PropertyLabel { text: qsTr("Capitalization") @@ -89,11 +96,11 @@ Section { PropertyLabel { text: qsTr("Style color") - visible: backendValues.styleColor.isAvailable + visible: root.isBackendValueAvailable("styleColor") } ColorEditor { - visible: backendValues.styleColor.isAvailable + visible: root.isBackendValueAvailable("styleColor") backendValue: backendValues.styleColor supportGradient: false } |