forked from qt-creator/qt-creator
QmlInspector: Anonymous items' types displayed with special characters in object tree
This commit is contained in:
@@ -141,7 +141,7 @@ void ObjectTree::buildTree(const QDeclarativeDebugObjectReference &obj, QTreeWid
|
|||||||
|
|
||||||
QTreeWidgetItem *item = parent ? new QTreeWidgetItem(parent) : new QTreeWidgetItem(this);
|
QTreeWidgetItem *item = parent ? new QTreeWidgetItem(parent) : new QTreeWidgetItem(this);
|
||||||
if (obj.idString().isEmpty())
|
if (obj.idString().isEmpty())
|
||||||
item->setText(0, obj.className());
|
item->setText(0, QLatin1String("<")+obj.className()+QLatin1String(">"));
|
||||||
else
|
else
|
||||||
item->setText(0, obj.idString());
|
item->setText(0, obj.idString());
|
||||||
item->setData(0, Qt::UserRole, qVariantFromValue(obj));
|
item->setData(0, Qt::UserRole, qVariantFromValue(obj));
|
||||||
|
|||||||
Reference in New Issue
Block a user