Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
886088a1
Commit
886088a1
authored
Apr 23, 2010
by
Robert Loehning
Browse files
Fixed debug view of QImage on Windows
Reviewed-by: hjk
parent
59237338
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchhandler.cpp
View file @
886088a1
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment