Debugger: Move putPlainChildren() to Dumper base

It's reusable...

Change-Id: I1a0f40b9b3bbecf99024d3a2fd5148baf604109b
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-03-20 15:16:56 +01:00
parent 50459e5713
commit 18b91ae4ec
4 changed files with 11 additions and 26 deletions
+7
View File
@@ -550,6 +550,13 @@ class DumperBase:
self.putSubItem("first", key)
self.putSubItem("second", value)
def putPlainChildren(self, value, dumpBase = True):
self.putEmptyValue(-99)
self.putNumChild(1)
if self.isExpanded():
with Children(self):
self.putFields(value, dumpBase)
def isMapCompact(self, keyType, valueType):
format = self.currentItemFormat()
if format == 2: