qt5base-lts/tests/auto/gui/image/qpixmap/qpixmap.pro
Friedemann Kleint 099029a342 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>
2012-03-02 14:44:00 +01:00

13 lines
281 B
Prolog

CONFIG += testcase
TARGET = tst_qpixmap
QT += core-private gui-private widgets widgets-private testlib
SOURCES += tst_qpixmap.cpp
!wince* {
win32:LIBS += -lgdi32 -luser32
}
RESOURCES += qpixmap.qrc
TESTDATA += convertFromImage/* convertFromToHICON/* loadFromData/* images/*