Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,17 @@ Controls.TextField {
onTextChanged: {
__dirty = true
}
Connections {
target: modelNodeBackend
onSelectionToBeChanged: {
if (__dirty) {
lineEdit.backendValue.value = text
}
__dirty = false
}
}
onEditingFinished: {
if (hasToConvertColor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment