debugger: some refactoring of the python dumpers

Now it's easy to suppress "uninformative" intermediate levels in the
Locals & Watchers by using the new  Dumper.putFields() function.
Used in qdump__QUrl
This commit is contained in:
hjk
2010-04-23 10:25:32 +02:00
parent 08b719c992
commit 8cd3b67a74
2 changed files with 52 additions and 46 deletions

View File

@@ -1440,13 +1440,14 @@ def qdump__QTextCodec(d, item):
d.putCallItem("name", item, "name()")
d.putCallItem("mibEnum", item, "mibEnum()")
def qdump__QUrl(d, item):
d_ptr = item.value["d"].dereference()
d.putStringValue(d_ptr["encodedOriginal"])
data = item.value["d"].dereference()
d.putStringValue(data["encodedOriginal"])
d.putNumChild(1)
if d.isExpanded(item):
with Children(d):
d.putItem(Item(d_ptr, item.iname, "d", "d"))
d.putFields(Item(data, item.iname))
def qdumpHelper__QVariant(d, value):