Commit 94bedf66 authored by hjk's avatar hjk
Browse files

Debugger: Simplify QVariant dumper



Change-Id: Ieeb65d9beaa2fbd1e30c54814500bcfbfb8bf161
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 8e37b242
......@@ -1908,9 +1908,7 @@ def qdumpHelper__QVariant(d, value):
isSpecial = d.qtVersion() >= 0x050000 \
and (innert == "QVariantMap" or innert == "QVariantHash")
if innerType.sizeof > sizePD or isSpecial:
sizePS = 2 * d.ptrSize() # sizeof(QVariant::PrivateShared)
val = (data.cast(d.charPtrType()) + sizePS) \
.cast(innerType.pointer()).dereference()
val = data["ptr"].cast(innerType.pointer().pointer()).dereference().dereference()
else:
val = data.cast(innerType)
......
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