Dumper: Fix dumping of QImage on 32bit

Change-Id: I3cc10a858f392ea34418698411d250809ba374e4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2016-10-13 12:11:13 +02:00
parent cdb218a3e1
commit 3d68a8d0de

View File

@@ -821,8 +821,12 @@ def qdump__QImage(d, value):
d.putValue('(invalid)') d.putValue('(invalid)')
return return
if d.ptrSize() == 8:
(ref, width, height, depth, nbytes, padding, devicePixelRatio, colorTable, (ref, width, height, depth, nbytes, padding, devicePixelRatio, colorTable,
bits, iformat) = d.split('iiiii@dppi', imageData) bits, iformat) = d.split('iiiii@dppi', imageData)
else:
(ref, width, height, depth, nbytes, devicePixelRatio, colorTable,
bits, iformat) = d.split('iiiiidppi', imageData)
d.putValue('(%dx%d)' % (width, height)) d.putValue('(%dx%d)' % (width, height))
d.putNumChild(1) d.putNumChild(1)