forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user