Fix QPixmap::grabWidget() on Windows.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Thu, 1 Mar 2012 16:31:37 +0000 (17:31 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 13:44:00 +0000 (14:44 +0100)
commit099029a3425bf44704672b8105b91968a3a46148
treedfcf3049dc1dd5dfef8077dc7ce9f57d8c4e6408
parentd505886dd696d0f01bb64cbc7a1191d960d4d060
Fix QPixmap::grabWidget() on Windows.

Do not draw on the backingstore DC when drawing
to a pixmap. Access the paintdevice for checking via
the QPaintEngine since QPainter returns the clipdevice,
which is a widget.
Fix warning about accessing handle of 0-window in the
test.

Task-number: QTBUG-24183

Change-Id: Ie91ea6ab9d09528c7ec1d35633f9a0ee667719b1
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/widgets/styles/qwindowsxpstyle.cpp
tests/auto/gui/image/qpixmap/qpixmap.pro