forked from qt-creator/qt-creator
Fixed debug view of QImage on Windows
Reviewed-by: hjk
This commit is contained in:
@@ -1429,6 +1429,13 @@ void WatchHandler::showEditValue(const WatchData &data)
|
||||
bits = (uchar*)ba.data();
|
||||
}
|
||||
QImage im(bits, width, height, QImage::Format(format));
|
||||
|
||||
#if 1
|
||||
// enforcing copy of image data
|
||||
QImage im2(im);
|
||||
im.detach();
|
||||
#endif
|
||||
|
||||
l->setPixmap(QPixmap::fromImage(im));
|
||||
l->resize(width, height);
|
||||
l->show();
|
||||
|
||||
Reference in New Issue
Block a user