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
parent
6fef496cd6
commit
4d32eab759
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue