forked from qt-creator/qt-creator
QmlDesigner: Don't copy/remove data property when copying all
'data' property contains node's children, so it should be ignored during the 'copy all properties' operation. Change-Id: Ib056409c9ad0a42ebc40f751173b7a3455d912c6 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -123,7 +123,7 @@ WidgetInfo MaterialBrowserView::widgetInfo()
|
||||
}
|
||||
}
|
||||
for (const PropertyName &propName : qAsConst(propNames)) {
|
||||
if (propName != "objectName")
|
||||
if (propName != "objectName" && propName != "data")
|
||||
mat.removeProperty(propName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user