forked from qt-creator/qt-creator
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:
@@ -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):
|
||||
|
@@ -177,6 +177,7 @@ void dummyStatement(...) {}
|
||||
#include <QFont>
|
||||
#include <QLabel>
|
||||
#include <QPainter>
|
||||
#include <QPixmap>
|
||||
#include <QPainterPath>
|
||||
#include <QRegion>
|
||||
#include <QStandardItemModel>
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user