Commit 7b6022be authored by hjk's avatar hjk
Browse files

debugger: make QFile and QFileInfo visible without top-level inferior call

Reviewed-by: Oswald Buddenhagen
parent 8df0f12e
......@@ -242,16 +242,17 @@ def qdump__QDir(d, item):
def qdump__QFile(d, item):
d.putStringValue(call(item.value, "fileName()"))
d.putNumChild(2)
ptype = lookupType(d.ns + "QFilePrivate")
d_ptr = item.value["d_ptr"]["d"].dereference()
d.putStringValue(d_ptr.cast(ptype)["fileName"])
d.putNumChild(1)
if d.isExpanded(item):
with Children(d, 2):
d.putCallItem("fileName", item, "fileName()")
with Children(d, 1):
d.putCallItem("exists", item, "exists()")
def qdump__QFileInfo(d, item):
d.putStringValue(call(item.value, "filePath()"))
d.putStringValue(item.value["d_ptr"]["d"].dereference()["fileName"])
d.putNumChild(3)
if d.isExpanded(item):
with Children(d, 10, lookupType(d.ns + "QString")):
......
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