debugger: show parents and children only for QObject itself

This commit is contained in:
hjk
2010-08-13 11:49:07 +02:00
parent 6fed7c662e
commit 0a3805a175

View File

@@ -606,7 +606,6 @@ def qdump__QObject(d, item):
#warn("OBJECTNAME: %s " % objectName)
#warn("D_PTR: %s " % d_ptr)
mo = d_ptr["metaObject"]
type = d.stripNamespaceFromType(item.value.type)
if isNull(mo):
mo = staticMetaObject
#warn("MO: %s " % mo)
@@ -627,8 +626,9 @@ def qdump__QObject(d, item):
with Children(d):
d.putFields(item)
# Parent and children.
d.putItem(Item(d_ptr["parent"], item.iname, "parent", "parent"))
d.putItem(Item(d_ptr["children"], item.iname, "children", "children"))
if stripClassTag(str(item.value.type)) == d.ns + "QObject":
d.putItem(Item(d_ptr["parent"], item.iname, "parent", "parent"))
d.putItem(Item(d_ptr["children"], item.iname, "children", "children"))
# Properties.
with SubItem(d):