aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-05-24 12:19:26 +0200
committerhjk <hjk@theqtcompany.com>2016-05-24 13:09:19 +0000
commitfbc82d3f88a736710474a95614767646a24077b2 (patch)
tree4be56783c208d8335c9d7b0e8da20a4a4ef5ea87 /share
parent98214c5a0fb2f5363ac92bf930d11b2fbb468902 (diff)
Debugger: Fix dumping of numeric QJsonValue inside arrays
Task-number: QTCREATORBUG-16313 Change-Id: I544e89fc964cd404652d8ea0c8df127e51235292 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/qttypes.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py
index 774147cfac..b62e5bfe0d 100644
--- a/share/qtcreator/debugger/qttypes.py
+++ b/share/qtcreator/debugger/qttypes.py
@@ -2645,7 +2645,10 @@ def qdumpHelper__QJsonValue(d, data, base, pv):
if t == 2:
d.putType("QJsonValue (Number)")
if latinOrIntValue:
- d.putValue(v)
+ w = toInteger(v)
+ if w >= 0x4000000:
+ w -= 0x8000000
+ d.putValue(w)
else:
data = base + v;
d.putValue(d.extractBlob(data, 8).extractDouble())
@@ -2746,10 +2749,12 @@ def qdump__QJsonValue(d, value):
d.putType("QJsonValue (Bool)")
v = toInteger(value["b"])
d.putValue("true" if v else "false")
+ d.putNumChild(0)
return
if t == 2:
d.putType("QJsonValue (Number)")
d.putValue(value["dbl"])
+ d.putNumChild(0)
return
if t == 3:
d.putType("QJsonValue (String)")