From 3d68a8d0dec033eebef7d0ead082a291afa9454d Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 13 Oct 2016 12:11:13 +0200 Subject: [PATCH] Dumper: Fix dumping of QImage on 32bit Change-Id: I3cc10a858f392ea34418698411d250809ba374e4 Reviewed-by: hjk --- share/qtcreator/debugger/qttypes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 5ce5531c682..0dd094906b8 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -821,8 +821,12 @@ def qdump__QImage(d, value): d.putValue('(invalid)') return - (ref, width, height, depth, nbytes, padding, devicePixelRatio, colorTable, - bits, iformat) = d.split('iiiii@dppi', imageData) + if d.ptrSize() == 8: + (ref, width, height, depth, nbytes, padding, devicePixelRatio, colorTable, + 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.putNumChild(1)