forked from qt-creator/qt-creator
debugger: fix display of QObject properties
This is a backport of 5d645bfdfe
This commit is contained in:
@@ -1326,6 +1326,13 @@ class Dumper:
|
||||
nsStrippedType = self.stripNamespaceFromType(
|
||||
typedefStrippedType).replace("::", "__")
|
||||
|
||||
# Is this derived from QObject?
|
||||
try:
|
||||
item.value['staticMetaObject']
|
||||
hasMetaObject = True
|
||||
except:
|
||||
hasMetaObject = False
|
||||
|
||||
#warn(" STRIPPED: %s" % nsStrippedType)
|
||||
#warn(" DUMPERS: %s" % self.dumpers)
|
||||
#warn(" DUMPERS: %s" % (nsStrippedType in self.dumpers))
|
||||
@@ -1336,6 +1343,10 @@ class Dumper:
|
||||
self.putValue(value)
|
||||
self.putNumChild(0)
|
||||
|
||||
elif hasMetaObject and self.useFancy:
|
||||
self.putType(item.value.type)
|
||||
qdump__QObject(self, item)
|
||||
|
||||
elif nsStrippedType in self.dumpers:
|
||||
#warn("IS DUMPABLE: %s " % type)
|
||||
self.putType(item.value.type)
|
||||
|
||||
Reference in New Issue
Block a user