summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-11-02 16:57:54 +0100
committerhjk <hjk@theqtcompany.com>2015-11-03 09:55:52 +0000
commitb85d8290a78d2c2e0ce34cf33a99b99c05bb88a0 (patch)
tree8297022f799268d63b9a7508a68a42fb4723539a
parent95c7d6fed5c47ecab1d3e56fef9e0ab8755f2a60 (diff)
downloadqt-creator-b85d8290a78d2c2e0ce34cf33a99b99c05bb88a0.tar.gz
Debugger: Restrict QJson{Array,Object} display to 1000 items.
... and don't offer expansion of isEmpty() object. Task-number: QTCREATORBUG-15270 Change-Id: Ifb76c20c6308484d38e21273a2f33c575bb72430 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--share/qtcreator/debugger/qttypes.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py
index 416d63e1ff..71e9a276b2 100644
--- a/share/qtcreator/debugger/qttypes.py
+++ b/share/qtcreator/debugger/qttypes.py
@@ -2620,9 +2620,8 @@ def qdumpHelper__QJsonArray(d, data, array):
n = 0
d.putItemCount(n)
- d.putNumChild(1)
if d.isExpanded():
- with Children(d):
+ with Children(d, maxNumChild=1000):
table = array + d.extractUInt(array + 8)
for i in range(n):
with SubItem(d, i):
@@ -2645,9 +2644,8 @@ def qdumpHelper__QJsonObject(d, data, obj):
n = 0
d.putItemCount(n)
- d.putNumChild(1)
if d.isExpanded():
- with Children(d):
+ with Children(d, maxNumChild=1000):
table = obj + d.extractUInt(obj + 8)
for i in range(n):
with SubItem(d, i):