Fixed debug view of QImage on Windows

Reviewed-by: hjk
This commit is contained in:
Robert Loehning
2010-04-23 18:03:05 +02:00
parent 5923733889
commit 886088a1f3

View File

@@ -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();