forked from qt-creator/qt-creator
QmlDesigner: Fix color property expression binding
Fix setting an expression on a color property via the binding editor by using the actual expression instead of a quote stripped version of it. Task-number: QDS-12919 Change-Id: I877b9f622158a5a88b4fe6add968ded4e691cb20 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
aed83c869d
commit
79e6c6809b
@@ -367,9 +367,9 @@ void PropertyEditorView::setExpressionOnObjectNode(const QmlObjectNode &constObj
|
||||
}
|
||||
}
|
||||
|
||||
if (qmlObjectNode.expression(name) != expression
|
||||
if (qmlObjectNode.expression(name) != newExpression
|
||||
|| !qmlObjectNode.propertyAffectedByCurrentState(name))
|
||||
qmlObjectNode.setBindingProperty(name, expression);
|
||||
qmlObjectNode.setBindingProperty(name, newExpression);
|
||||
}
|
||||
|
||||
void PropertyEditorView::generateAliasForProperty(const ModelNode &modelNode, const QString &name)
|
||||
|
Reference in New Issue
Block a user