QmlDesigner: Add more info to the DebugView

Change-Id: I5d50fa19ed4993cb97992bad5d6068902e288a1c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-04-06 14:11:32 +02:00
parent 2ce76937d4
commit 94ad31be13

View File

@@ -163,8 +163,21 @@ void DebugView::nodeIdChanged(const ModelNode &node, const QString &newId, const
} }
} }
void DebugView::propertiesAboutToBeRemoved(const QList<AbstractProperty> & /*propertyList*/) void DebugView::propertiesAboutToBeRemoved(const QList<AbstractProperty> &propertyList)
{ {
if (isDebugViewEnabled()) {
QTextStream message;
QString string;
message.setString(&string);
for (const AbstractProperty &property : propertyList) {
message << property;
if (property.isNodeAbstractProperty())
message << " is NodeAbstractProperty";
if (property.isDefaultProperty())
message << " is DefaultProperty";
}
log("::propertiesAboutToBeRemoved:", string);
}
} }
void DebugView::variantPropertiesChanged(const QList<VariantProperty> &propertyList, void DebugView::variantPropertiesChanged(const QList<VariantProperty> &propertyList,