diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 0d154a1e633..5ce5531c682 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -1043,7 +1043,7 @@ def qdump__QPixmap(d, value): else: (dummy, width, height) = d.split('pii', dataPtr) d.putValue('(%dx%d)' % (width, height)) - d.putNumChild(0) + d.putPlainChildren(value) def qdump__QPoint(d, value): diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp index 631c9e08953..b1fbf257060 100644 --- a/tests/manual/debugger/simple/simple_test_app.cpp +++ b/tests/manual/debugger/simple/simple_test_app.cpp @@ -177,6 +177,7 @@ void dummyStatement(...) {} #include #include #include +#include #include #include #include @@ -1144,12 +1145,13 @@ namespace painting { pain.drawLine(2, 2, 130, 130); pain.end(); QPixmap pm = QPixmap::fromImage(im); + QSize size = pm.size(); BREAK_HERE; // Check im (200x200) QImage. // CheckType pain QPainter. // Check pm (200x200) QPixmap. // Continue. - dummyStatement(&im, &pm); + dummyStatement(&im, &pm, &size); #endif }