Commit 2d5e6ef2 authored by hjk's avatar hjk
Browse files

Debugger: Fix QObject parent pointer display



Change-Id: If8b6c7415d5cd6b8e5df6c2d760b015e3077c20f
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 87e1093d
......@@ -1794,7 +1794,7 @@ class DumperBase:
qobjectPtrType = self.createType('QObject') # FIXME.
with SubItem(self, '[parent]'):
self.putField('sortgroup', 9)
self.putItem(self.createValue(dd + 2 * ptrSize, qobjectPtrType))
self.putItem(self.createValue(parentPtr, qobjectPtrType))
with SubItem(self, '[children]'):
self.putField('sortgroup', 8)
base = self.extractPointer(dd + 3 * ptrSize) # It's a QList<QObject *>
......
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