Commit b5559e73 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: Use selectionToBeChanged in LineEdit



Commit any data to the backend if the selection will change.
The signal editingFinished is usually triggered to late.

Change-Id: Ib7adfd32a50ae94b017a7587e81721176440a988
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 10e2a046
...@@ -74,6 +74,17 @@ Controls.TextField { ...@@ -74,6 +74,17 @@ Controls.TextField {
onTextChanged: { onTextChanged: {
__dirty = true __dirty = true
} }
Connections {
target: modelNodeBackend
onSelectionToBeChanged: {
if (__dirty) {
lineEdit.backendValue.value = text
}
__dirty = false
}
}
onEditingFinished: { onEditingFinished: {
if (hasToConvertColor) if (hasToConvertColor)
......
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