From d5d449e421d9ee143150c1c4bd686c9635a2a71d Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 1 Aug 2016 12:52:40 +0200 Subject: [PATCH] Debugger: Fix display of dynamic properties While the properties were dumped properly, only the number of static properties was shown. Change-Id: I3ccd98478e62d99849f5012121d2ff2bda500319 Reviewed-by: Christian Stenger --- share/qtcreator/debugger/dumper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py index ac9d2b59fae..25b65bd5d6c 100644 --- a/share/qtcreator/debugger/dumper.py +++ b/share/qtcreator/debugger/dumper.py @@ -1702,9 +1702,9 @@ class DumperBase: if isQMetaObject or isQObject: with SubItem(self, "[properties]"): self.put('sortgroup="5"') - self.putItemCount(propertyCount) if self.isExpanded(): usesVector = self.qtVersion() >= 0x50700 + dynamicPropertyCount = 0 with Children(self): # Static properties. for i in range(propertyCount): @@ -1725,11 +1725,12 @@ class DumperBase: else: values = self.listChildrenGenerator(extraData + 2 * ptrSize, variantType) for (k, v) in zip(names, values): - with SubItem(self, propertyCount): + with SubItem(self, propertyCount + dynamicPropertyCount): self.put('key="%s",' % self.encodeByteArray(k)) self.put('keyencoded="latin1",') self.putItem(v) - propertyCount += 1 + dynamicPropertyCount += 1 + self.putItemCount(propertyCount + dynamicPropertyCount) else: # We need a handle to [x] for the user to expand the item # before we know whether there are actual children. Counting