diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontComboBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontComboBox.qml index dafd287dd85..ffc774d7cd0 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontComboBox.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontComboBox.qml @@ -40,7 +40,7 @@ Controls.ComboBox { model: ["Arial", "Times New Roman", "Courier", "Verdana", "Tahoma"] onModelChanged: { - editText = backendValue.valueToString + editText = comboBox.backendValue.valueToString } style: CustomComboBoxStyle { @@ -50,7 +50,7 @@ Controls.ComboBox { ColorLogic { id: colorLogic backendValue: comboBox.backendValue - property string textValue: backendValue.value + property string textValue: comboBox.backendValue.valueToString onTextValueChanged: { comboBox.editText = textValue } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml index 5b718338379..f823a58ba8e 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml @@ -60,7 +60,7 @@ Section { text: qsTr("Font") } FontComboBox { - backendValue: fontFamily + backendValue: fontSection.fontFamily Layout.fillWidth: true }