Commit 7819f4e1 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fixes for LineEdit.qml - avoids warnings

This also fixes BAUHAUS-613
parent a7aed8cb
......@@ -57,8 +57,14 @@ QWidget {
styleSheet: "QLineEdit { padding-left: 32; }"
width: lineEdit.width
height: lineEdit.height
property string valueFromBackend: (backendValue === undefined || backendValue.value === undefined) ? "" : backendValue.value;
text: (backendValue === undefined || backendValue.value === undefined) ? "" : backendValue.value
onValueFromBackendChanged: {
if (backendValue.value === undefined)
return;
text = backendValue.value;
}
onEditingFinished: {
backendValue.value = text
......
Supports Markdown
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