diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-04-29 08:43:45 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-04-29 08:43:45 (GMT) |
commit | e28cefa64b02b61e305581abdbb0469b6e484c40 (patch) | |
tree | 3395d4c4677e794007c0774d2d8b0b192dc8ed5b /src/gui/image/qpixmap_s60.cpp | |
parent | f546d1b79d64cfad35fc4b3e5cf5db7e513e1035 (diff) | |
download | Qt-e28cefa64b02b61e305581abdbb0469b6e484c40.zip Qt-e28cefa64b02b61e305581abdbb0469b6e484c40.tar.gz Qt-e28cefa64b02b61e305581abdbb0469b6e484c40.tar.bz2 |
Make QPixmap::grabWindow() work for top level windows.
Its not enough to mask with Qt::Desktop because this enum value also
includes Qt::Window so masking would give us a non-zero result thus
causing the 'if' case to resolve to true which is not what we want.
Diffstat (limited to 'src/gui/image/qpixmap_s60.cpp')
-rw-r--r-- | src/gui/image/qpixmap_s60.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap_s60.cpp b/src/gui/image/qpixmap_s60.cpp index 6246592..625988a 100644 --- a/src/gui/image/qpixmap_s60.cpp +++ b/src/gui/image/qpixmap_s60.cpp @@ -27,7 +27,7 @@ QPixmap QPixmap::grabWindow(WId winId, int x, int y, int w, int h ) // Find out if this is one of our windows. QSymbianControl *sControl; sControl = winId->MopGetObject(sControl); - if (sControl && sControl->widget()->windowType() & Qt::Desktop) { + if (sControl && sControl->widget()->windowType() == Qt::Desktop) { // Grabbing desktop widget srcSize = screenSize; } else { |