Commit fe8746b3 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Dumper: Make QFile base dumper consistent

and avoid hard-coding the base class

Task-number: QTCREATORBUG-7283

Change-Id: I42f5577062c9de1a0fea6bf50a27e1aae8612ad9
Reviewed-by: default avatarhjk <>
parent 574d871e
......@@ -1393,9 +1393,9 @@ class Dumper:
format = self.typeformats.get(stripForFormat(str(self.currentType)))
return format
def putSubItem(self, component, value):
def putSubItem(self, component, value, tryDynamic=True):
with SubItem(self, component):
self.putItem(value, tryDynamic)
def putNamedSubItem(self, component, value, name):
with SubItem(self, component):
......@@ -238,8 +238,9 @@ def qdump__QFile(d, value):
if d.isExpanded():
with Children(d):
base = value.type.fields()[0].type
d.putSubItem("[%s]" % str(base), value.cast(base), False)
d.putCallItem("exists", value, "exists")
d.putSubItem("device", value.cast(lookupType(d.ns + "QIODevice")))
def qdump__QFileInfo(d, value):
Supports Markdown
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