Commit 0a3805a1 authored by hjk's avatar hjk
Browse files

debugger: show parents and children only for QObject itself

parent 6fed7c66
......@@ -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):
......
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