debugger: add test code for signal/slot debugging

This commit is contained in:
hjk
2010-07-07 17:11:10 +02:00
parent 30d4c00437
commit bb3a6f05d0
3 changed files with 61 additions and 1 deletions

View File

@@ -799,6 +799,28 @@ def qdump__QObject(d, item):
d.putType(" ")
d.putValue(extractCString(metaStringData, offset))
# Active connection
with SubItem(d):
d.putName("currentSender")
d.putType(" ")
sender = d_ptr["currentSender"]
d.putValue(cleanAddress(sender))
if isNull(sender):
d.putNumChild(0)
else:
d.putNumChild(1)
iname = item.iname + ".currentSender"
if d.isExpandedIName(iname):
with Children(d):
# Sending object
d.putItem(Item(sender["sender"], iname, "object", "object"))
# Signal in sending object
with SubItem(d):
d.putName("signal")
d.putValue(sender["signal"])
d.putType(" ");
d.putNumChild(0)
# QObject
# static const uint qt_meta_data_QObject[] = {