QmlInspector: Do not show unnamed properties

Task-number: QTCREATORBUG-9069

Change-Id: If0fa1824c9f4b09d9ea4f1c470fdeb18c2836b36
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Aurindam Jana
2013-04-25 10:50:35 +02:00
parent fc194f82e1
commit 60c08de2c6

View File

@@ -833,11 +833,14 @@ QList<WatchData> QmlInspectorAgent::buildWatchData(const ObjectReference &obj,
list.append(propertiesWatch);
foreach (const PropertyReference &property, obj.properties()) {
const QString propertyName = property.name();
if (propertyName.isEmpty())
continue;
WatchData propertyWatch;
propertyWatch.id = objDebugId;
propertyWatch.exp = property.name().toLatin1();
propertyWatch.name = property.name();
propertyWatch.iname = buildIName(propertiesWatch.iname, property.name());
propertyWatch.exp = propertyName.toLatin1();
propertyWatch.name = propertyName;
propertyWatch.iname = buildIName(propertiesWatch.iname, propertyName);
propertyWatch.type = property.valueTypeName().toLatin1();
propertyWatch.value = property.value().toString();
propertyWatch.setAllUnneeded();