QmlDesigner: Fix notifications

In case we did a mapping to PropertyChanges
we notified the change on the ProperyChange
instead of the target item.

Change-Id: I876a998589cddd16e4968fd1dd0eebaab42863dc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-09-22 17:11:54 +02:00
parent 83210400b1
commit 64a1401919

View File

@@ -651,13 +651,13 @@ void NodeInstanceView::updateChildren(const NodeAbstractProperty &newPropertyPar
void setXValue(NodeInstance &instance, const VariantProperty &variantProperty, QMultiHash<ModelNode, InformationName> &informationChangeHash)
{
instance.setX(variantProperty.value().toDouble());
informationChangeHash.insert(variantProperty.parentModelNode(), Transform);
informationChangeHash.insert(instance.modelNode(), Transform);
}
void setYValue(NodeInstance &instance, const VariantProperty &variantProperty, QMultiHash<ModelNode, InformationName> &informationChangeHash)
{
instance.setY(variantProperty.value().toDouble());
informationChangeHash.insert(variantProperty.parentModelNode(), Transform);
informationChangeHash.insert(instance.modelNode(), Transform);
}