Commit 12aa1015 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Normalize expressions

We have to remove whitespaces and ';' to normalize expressions.
Otherwise expressions can change when rewriting.

Change-Id: I0085a5a46c4caa2815a4e7f4f76658a4df49de75
Reviewed-by: default avatarTim Jenssen <>
parent 89d22b6e
......@@ -1087,6 +1087,12 @@ void TextToModelMerger::syncNode(ModelNode &modelNode,
astValue = textAt(context->doc(),
astValue = astValue.trimmed();
if (astValue.endsWith(QLatin1Char(';')))
astValue = astValue.left(astValue.length() - 1);
astValue = astValue.trimmed();
const TypeName &astType = property->memberType.toUtf8();
AbstractProperty modelProperty =;
if (!property->statement || isLiteralValue(property->statement)) {
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