fix "paintEngine: Should no longer be called" warnings on Windows

Change-Id: Idece743d1f28f1c579d823123b6814fae786b58b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
bb10
Joerg Bornemann 2012-07-09 11:20:19 +02:00 committed by Qt by Nokia
parent 6fef496cd6
commit 4d32eab759
1 changed files with 1 additions and 1 deletions

View File

@ -9948,7 +9948,7 @@ void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
"QWidgetPrivate::high_attributes[] too small to contain all attributes in WidgetAttribute");
#ifdef Q_OS_WIN
// ### Don't use PaintOnScreen+paintEngine() to do native painting in some future release
if (attribute == Qt::WA_PaintOnScreen && on && !inherits("QGLWidget")) {
if (attribute == Qt::WA_PaintOnScreen && on && windowType() != Qt::Desktop && !inherits("QGLWidget")) {
// see qwidget_qpa.cpp, ::paintEngine for details
paintEngine();
if (d->noPaintOnScreen)