Commit bfdffd2a authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.NodeInstances: Check expressions

I do not see any reason to set an expression that contains a
code block.

Change-Id: I74960a6bac741db46d86e33299e8b1669e781e65
Reviewed-by: default avatarTim Jenssen <>
parent 29fa5d4a
......@@ -91,6 +91,14 @@ static bool isPropertyBlackListed(const QmlDesigner::PropertyName &propertyName)
return false;
static bool isSimpleExpression(const QString &expression)
if (expression.startsWith(QStringLiteral("{")))
return false;
return true;
namespace QmlDesigner {
namespace Internal {
......@@ -512,6 +520,9 @@ void ObjectNodeInstance::setPropertyBinding(const PropertyName &name, const QStr
if (ignoredProperties().contains(name))
if (!isSimpleExpression(expression))
QQmlProperty property(object(), name, context());
if (!property.isValid())
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