Commit 60c08de2 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

QmlInspector: Do not show unnamed properties



Task-number: QTCREATORBUG-9069

Change-Id: If0fa1824c9f4b09d9ea4f1c470fdeb18c2836b36
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent fc194f82
...@@ -833,11 +833,14 @@ QList<WatchData> QmlInspectorAgent::buildWatchData(const ObjectReference &obj, ...@@ -833,11 +833,14 @@ QList<WatchData> QmlInspectorAgent::buildWatchData(const ObjectReference &obj,
list.append(propertiesWatch); list.append(propertiesWatch);
foreach (const PropertyReference &property, obj.properties()) { foreach (const PropertyReference &property, obj.properties()) {
const QString propertyName = property.name();
if (propertyName.isEmpty())
continue;
WatchData propertyWatch; WatchData propertyWatch;
propertyWatch.id = objDebugId; propertyWatch.id = objDebugId;
propertyWatch.exp = property.name().toLatin1(); propertyWatch.exp = propertyName.toLatin1();
propertyWatch.name = property.name(); propertyWatch.name = propertyName;
propertyWatch.iname = buildIName(propertiesWatch.iname, property.name()); propertyWatch.iname = buildIName(propertiesWatch.iname, propertyName);
propertyWatch.type = property.valueTypeName().toLatin1(); propertyWatch.type = property.valueTypeName().toLatin1();
propertyWatch.value = property.value().toString(); propertyWatch.value = property.value().toString();
propertyWatch.setAllUnneeded(); propertyWatch.setAllUnneeded();
......
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