Debugger: Show raw object data for pixmap

"Separate display" can be triggered for QRasterPlatformPixmap on
the embeddded QImage.

Task-number: QTCREATORBUG-17107
Change-Id: Ib54a6f76f634b0dcf601836dc10609f212581d14
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-10-13 08:40:06 +02:00
parent 2c9fb06b97
commit cdb218a3e1
2 changed files with 4 additions and 2 deletions

View File

@@ -1043,7 +1043,7 @@ def qdump__QPixmap(d, value):
else: else:
(dummy, width, height) = d.split('pii', dataPtr) (dummy, width, height) = d.split('pii', dataPtr)
d.putValue('(%dx%d)' % (width, height)) d.putValue('(%dx%d)' % (width, height))
d.putNumChild(0) d.putPlainChildren(value)
def qdump__QPoint(d, value): def qdump__QPoint(d, value):

View File

@@ -177,6 +177,7 @@ void dummyStatement(...) {}
#include <QFont> #include <QFont>
#include <QLabel> #include <QLabel>
#include <QPainter> #include <QPainter>
#include <QPixmap>
#include <QPainterPath> #include <QPainterPath>
#include <QRegion> #include <QRegion>
#include <QStandardItemModel> #include <QStandardItemModel>
@@ -1144,12 +1145,13 @@ namespace painting {
pain.drawLine(2, 2, 130, 130); pain.drawLine(2, 2, 130, 130);
pain.end(); pain.end();
QPixmap pm = QPixmap::fromImage(im); QPixmap pm = QPixmap::fromImage(im);
QSize size = pm.size();
BREAK_HERE; BREAK_HERE;
// Check im (200x200) QImage. // Check im (200x200) QImage.
// CheckType pain QPainter. // CheckType pain QPainter.
// Check pm (200x200) QPixmap. // Check pm (200x200) QPixmap.
// Continue. // Continue.
dummyStatement(&im, &pm); dummyStatement(&im, &pm, &size);
#endif #endif
} }