From b85d8290a78d2c2e0ce34cf33a99b99c05bb88a0 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 2 Nov 2015 16:57:54 +0100 Subject: 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 --- share/qtcreator/debugger/qttypes.py | 6 ++---- 1 file 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): -- cgit v1.2.1