forked from qt-creator/qt-creator
QmlDesigner.PropertyEditor: Fixing font issues
fully qualify properties to avoid ambiguities Task-number: QTCREATORBUG-16403 Change-Id: I0f0f7a7dbf28f51aa82bf3e2fd2652189c460102 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
8af2c18341
commit
669a77bac4
@@ -40,7 +40,7 @@ Controls.ComboBox {
|
|||||||
model: ["Arial", "Times New Roman", "Courier", "Verdana", "Tahoma"]
|
model: ["Arial", "Times New Roman", "Courier", "Verdana", "Tahoma"]
|
||||||
|
|
||||||
onModelChanged: {
|
onModelChanged: {
|
||||||
editText = backendValue.valueToString
|
editText = comboBox.backendValue.valueToString
|
||||||
}
|
}
|
||||||
|
|
||||||
style: CustomComboBoxStyle {
|
style: CustomComboBoxStyle {
|
||||||
@@ -50,7 +50,7 @@ Controls.ComboBox {
|
|||||||
ColorLogic {
|
ColorLogic {
|
||||||
id: colorLogic
|
id: colorLogic
|
||||||
backendValue: comboBox.backendValue
|
backendValue: comboBox.backendValue
|
||||||
property string textValue: backendValue.value
|
property string textValue: comboBox.backendValue.valueToString
|
||||||
onTextValueChanged: {
|
onTextValueChanged: {
|
||||||
comboBox.editText = textValue
|
comboBox.editText = textValue
|
||||||
}
|
}
|
||||||
|
@@ -60,7 +60,7 @@ Section {
|
|||||||
text: qsTr("Font")
|
text: qsTr("Font")
|
||||||
}
|
}
|
||||||
FontComboBox {
|
FontComboBox {
|
||||||
backendValue: fontFamily
|
backendValue: fontSection.fontFamily
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user