QmlInspector: Make sure children list is always displayed on expansion

Change-Id: I2c55e5a4c95088c1a1944916678483792ffaba95
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Kai Koehne
2012-05-11 14:00:17 +02:00
parent d762373b95
commit 94300bf7a5

View File

@@ -675,6 +675,13 @@ QList<WatchData> QmlInspectorAgent::buildWatchData(const ObjectReference &obj,
list.append(objWatch);
m_debugIdToIname.insert(objWatch.id, objWatch.iname);
if (!m_engine->watchHandler()->isExpandedIName(objWatch.iname)
&& obj.needsMoreData()) {
// we don't know the children yet. Not adding the 'properties'
// element makes sure we're queried on expansion.
return list;
}
// properties
WatchData propertiesWatch;
propertiesWatch.id = objWatch.id;