diff --git a/share/qtcreator/qmldesigner/propertyeditor/HelperWidgets/ComboBox.qml b/share/qtcreator/qmldesigner/propertyeditor/HelperWidgets/ComboBox.qml index dd5c1633aba55d57ef119d69f55516bf09f9b4fc..5559452a89fc46367a1b3bbc8fe4b803819648d9 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/HelperWidgets/ComboBox.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/HelperWidgets/ComboBox.qml @@ -77,19 +77,22 @@ QWidget { QComboBox { id: box property variant backendValue: comboBox.backendValue - onCurrentTextChanged: { backendValue.value = currentText; evaluate(); } - onItemsChanged: { - if (comboBox.backendValue.value == curentText) - return; - box.setCurrentTextSilent(comboBox.backendValue.value); - } - - property variant backendValueValue: comboBox.backendValue.value - onBackendValueValueChanged: { - if (comboBox.backendValue.value == curentText) - return; - box.setCurrentTextSilent(comboBox.backendValue.value); - } + onCurrentTextChanged: { + print("valuechanged"); + print(comboBox.currentText) + backendValue.value = comboBox.currentText; evaluate(); } + onItemsChanged: { + if (comboBox.backendValue.value === comboBox.curentText) + return; + box.setCurrentTextSilent(comboBox.backendValue.value); + } + + property variant backendValueValue: comboBox.backendValue.value + onBackendValueValueChanged: { + if (comboBox.backendValue.value === comboBox.curentText) + return; + box.setCurrentTextSilent(comboBox.backendValue.value); + } ExtendedFunctionButton { backendValue: comboBox.backendValue; y: 3