Commit dd2d17ed authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Alessandro Portale

QmlDesigner.FormEditor: Do not overwrite auxiliaryData width/height

We using F2/goto into component the auxiliaryData is typically
already set.

Change-Id: Ib201198f5fcd7a716fb416b54537488cc5b68afc
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent b8a22a5e
......@@ -424,8 +424,10 @@ void FormEditorView::instanceInformationsChange(const QMultiHash<ModelNode, Info
if (qmlItemNode.instanceBoundingRect().isEmpty() &&
!(qmlItemNode.propertyAffectedByCurrentState("width")
&& qmlItemNode.propertyAffectedByCurrentState("height"))) {
rootModelNode().setAuxiliaryData("width", 640);
rootModelNode().setAuxiliaryData("height", 480);
if (!(rootModelNode().hasAuxiliaryData("width")))
rootModelNode().setAuxiliaryData("width", 640);
if (!(rootModelNode().hasAuxiliaryData("height")))
rootModelNode().setAuxiliaryData("height", 480);
rootModelNode().setAuxiliaryData("autoSize", true);
formEditorWidget()->updateActions();
} else {
......
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