Commit cc2547f5 authored by hjk's avatar hjk
Browse files

Debugger: Ensure maximum number of elements in QMap display



Change-Id: I7de69c49245daf03ffd3e257cbd08f25b7bedd1d
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@digia.com>
parent a97b449f
......@@ -946,10 +946,12 @@ def qdumpHelper__Qt5_QMap(d, value, forceLong):
innerType = nodeType
def helper(d, node, nodeType, isCompact, forceLong, i):
def helper(d, node, nodeType, isCompact, forceLong, i, n):
left = node["left"]
if not d.isNull(left):
i = helper(d, left.dereference(), nodeType, isCompact, forceLong, i)
i = helper(d, left.dereference(), nodeType, isCompact, forceLong, i, n)
if i >= n:
return i
nodex = node.cast(nodeType)
with SubItem(d, i):
......@@ -964,16 +966,18 @@ def qdumpHelper__Qt5_QMap(d, value, forceLong):
qdump__QMapNode(d, nodex)
i += 1
if i >= n:
return i
right = node["right"]
if not d.isNull(right):
i = helper(d, right.dereference(), nodeType, isCompact, forceLong, i)
i = helper(d, right.dereference(), nodeType, isCompact, forceLong, i, n)
return i
with Children(d, n, childType=innerType):
node = d_ptr["header"]
helper(d, node, nodeType, isCompact, forceLong, 0)
helper(d, node, nodeType, isCompact, forceLong, 0, n)
......
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