Commit 886088a1 authored by Robert Loehning's avatar Robert Loehning
Browse files

Fixed debug view of QImage on Windows

Reviewed-by: hjk
parent 59237338
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment