forked from qt-creator/qt-creator
Dumper: Fix dumping of QImage on 32bit
Change-Id: I3cc10a858f392ea34418698411d250809ba374e4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user