Commit b85d8290 authored by hjk's avatar hjk

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: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 95c7d6fe
...@@ -2620,9 +2620,8 @@ def qdumpHelper__QJsonArray(d, data, array): ...@@ -2620,9 +2620,8 @@ def qdumpHelper__QJsonArray(d, data, array):
n = 0 n = 0
d.putItemCount(n) d.putItemCount(n)
d.putNumChild(1)
if d.isExpanded(): if d.isExpanded():
with Children(d): with Children(d, maxNumChild=1000):
table = array + d.extractUInt(array + 8) table = array + d.extractUInt(array + 8)
for i in range(n): for i in range(n):
with SubItem(d, i): with SubItem(d, i):
...@@ -2645,9 +2644,8 @@ def qdumpHelper__QJsonObject(d, data, obj): ...@@ -2645,9 +2644,8 @@ def qdumpHelper__QJsonObject(d, data, obj):
n = 0 n = 0
d.putItemCount(n) d.putItemCount(n)
d.putNumChild(1)
if d.isExpanded(): if d.isExpanded():
with Children(d): with Children(d, maxNumChild=1000):
table = obj + d.extractUInt(obj + 8) table = obj + d.extractUInt(obj + 8)
for i in range(n): for i in range(n):
with SubItem(d, i): with SubItem(d, i):
......
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