aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorRobert Loehning <[email protected]>2010-04-23 18:03:05 +0200
committerRobert Loehning <[email protected]>2010-04-23 18:04:40 +0200
commit886088a1f3f2a3b20e6d10b89b0782b9eede1277 (patch)
treeffccbb2847853b77352c8d70768d54056701e93d /src/plugins/debugger/watchhandler.cpp
parent5923733889075800a0979c73476bf3bbae204e89 (diff)
Fixed debug view of QImage on Windows
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 7cfe8694360..8aab91508bb 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -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();