forked from qt-creator/qt-creator
Debugger: Remove unused WatchItem::state flag
Lately it was only set and read for debugging purposes. A mechanism similar to the ChildrenNeeded state is still needed and available through WatchItem::wantsChildren. Change-Id: I78c85d65bc35810be420bd0418db9675473697cd Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -615,7 +615,6 @@ void QmlInspectorAgent::addWatchData(const ObjectReference &obj,
|
||||
objWatch->type = obj.className();
|
||||
objWatch->value = "object";
|
||||
objWatch->wantsChildren = true;
|
||||
objWatch->setAllUnneeded();
|
||||
|
||||
m_qmlEngine->watchHandler()->insertItem(objWatch);
|
||||
addObjectWatch(objWatch->id);
|
||||
@@ -645,7 +644,6 @@ void QmlInspectorAgent::addWatchData(const ObjectReference &obj,
|
||||
propertiesWatch->id = objDebugId;
|
||||
propertiesWatch->value = "list";
|
||||
propertiesWatch->wantsChildren = true;
|
||||
propertiesWatch->setAllUnneeded();
|
||||
|
||||
foreach (const PropertyReference &property, obj.properties()) {
|
||||
const QString propertyName = property.name();
|
||||
@@ -659,7 +657,6 @@ void QmlInspectorAgent::addWatchData(const ObjectReference &obj,
|
||||
propertyWatch->type = property.valueTypeName();
|
||||
propertyWatch->value = property.value().toString();
|
||||
propertyWatch->wantsChildren = false;
|
||||
propertyWatch->setAllUnneeded();
|
||||
propertiesWatch->appendChild(propertyWatch);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user