Commit 58f4516e authored by hjk's avatar hjk

Debugger: Make QPixmap dumper work in release builds

Change-Id: Ib50d6968fcac38fa59df5c34c578b4a618dc9e06
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 103d0e64
......@@ -1392,14 +1392,10 @@ def qdump__QObject(d, value):
# }
def qdump__QPixmap(d, value):
painters = int(value["painters"])
check(0 <= painters and painters < 1000)
d_ptr = value["data"]["d"]
if isNull(d_ptr):
d.putValue("(null)")
else:
checkSimpleRef(d_ptr["ref"])
d.putValue("(%dx%d)" % (d_ptr["w"], d_ptr["h"]))
intPtrType = d.lookupType("int").pointer()
offset = (3 if d.qtVersion() >= 0x050000 else 2) * intPtrType.sizeof
base = createReferenceValue(value, d.addressOf(value) + offset, intPtrType)
d.putValue("(%dx%d)" % (base[1], base[2]))
d.putNumChild(0)
......
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