Commit 30517ab7 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: avoid binding loops

parent 4c0645b4
......@@ -56,10 +56,16 @@ QWidget {
layout: HorizontalLayout {
QFontComboBox {
id: fontSelector
// currentFont.family:backendValues.font_family.value
// onCurrentFontChanged: if (backendValues.font_family.value != currentFont.family)
// backendValues.font_family.value = currentFont.family;
id: fontSelector
currentFont.family: backendValue.value
property var fontFamily: currentFont.family
onFontFamilyChanged: {
if (backendValue === undefined)
return;
if (backendValue.value != currentFont.family)
backendValue.value = currentFont.family;
}
}
}
}
......@@ -14,13 +14,9 @@ GroupBox {
Label {
text: qsTr("Font")
}
FontComboBox {
id: fontSelector
currentFont.family:backendValues.font_family.value
onCurrentFontChanged: if (backendValues.font_family.value != currentFont.family)
backendValues.font_family.value = currentFont.family;
backendValue:backendValues.font_family
backendValue: backendValues.font_family
baseStateFlag: isBaseState
}
}
......@@ -66,11 +62,11 @@ GroupBox {
ComboBox {
baseStateFlag:isBaseState
backendValue: backendValues.style
backendValue: (backendValues.style === undefined) ? dummyBackendValue : backendValues.style
items : { ["Normal", "Outline", "Raised", "Sunken"] }
currentText: backendValues.style.value;
currentText: backendValue.value;
onItemsChanged: {
currentText = backendValues.style.value;
currentText = backendValue.value;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment