QmlDesigner: take only width and height as auxiliary values

In case the user switched into a component to see what is wrong or right
it is very confusing if the component takes some property which is set
in the parent.

Change-Id: Ib8310bf6b6af029e7aa392bd924c04aa3e982a4d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2018-09-24 10:42:00 +02:00
committed by Thomas Hartmann
parent 6235ae0bc0
commit 70a78640eb

View File

@@ -102,14 +102,6 @@ static inline void applyProperties(ModelNode &node, const QHash<PropertyName, QV
const PropertyName propertyName = propertyIterator.key();
if (propertyName == "width" || propertyName == "height") {
node.setAuxiliaryData(propertyIterator.key(), propertyIterator.value());
} else if (node.property(propertyIterator.key()).isDynamic() &&
node.property(propertyIterator.key()).dynamicTypeName() == "alias" &&
node.property(propertyIterator.key()).isBindingProperty()) {
AbstractProperty targetProperty = node.bindingProperty(propertyIterator.key()).resolveToProperty();
if (targetProperty.isValid())
targetProperty.parentModelNode().setAuxiliaryData(targetProperty.name() + "@NodeInstance", propertyIterator.value());
} else {
node.setAuxiliaryData(propertyIterator.key() + "@NodeInstance", propertyIterator.value());
}
}
}