revive the noPaintOnScreen fix on Windows
authorJoerg Bornemann <joerg.bornemann@nokia.com>
Tue, 3 Jul 2012 10:19:38 +0000 (12:19 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Jul 2012 11:31:20 +0000 (13:31 +0200)
commit3037525530fa47c35cdcb492bf3e42d36e85e6c3
tree3675db05e4bbda1e39090ee9068a0d2f42757050
parent8ccab9b029ed2a2444d89a9cfc6c4a1866b8e82d
revive the noPaintOnScreen fix on Windows

The original commit message follows.

Fixes:   Fix the windows PaintOnScreen issue once and for all

Details: To allow both the case where X11 people accidentally set
         PaintOnScreen (which should not have any effect on windows)
         and where people set it and subclass with paintEngine() {
         return 0 } to use GDI / DirectX we do this rather nasty hack.

Original commit in Qt4: 07a2f68bd5869152471e4ffc4a63c683ef141ae8
Autotest: tst_QWidget::paintOnScreenPossible

Change-Id: Ifbb7dc4611959be3ecc362c29a1c3436b0e0fa82
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/widgets/kernel/qwidget.cpp
src/widgets/kernel/qwidget_p.h
src/widgets/kernel/qwidget_qpa.cpp