diff --git a/src/widgets/kernel/qwidgetrepaintmanager.cpp b/src/widgets/kernel/qwidgetrepaintmanager.cpp index 4383b4c168..cbad1d3f04 100644 --- a/src/widgets/kernel/qwidgetrepaintmanager.cpp +++ b/src/widgets/kernel/qwidgetrepaintmanager.cpp @@ -1306,13 +1306,6 @@ void QWidgetRepaintManager::doSync() BeginPaintInfo beginPaintInfo; beginPaint(toClean, tlw, store, &beginPaintInfo); - if (beginPaintInfo.nothingToPaint) { - for (int i = 0; i < opaqueNonOverlappedWidgets.size(); ++i) - resetWidget(opaqueNonOverlappedWidgets[i]); - dirty = QRegion(); - updateRequestSent = false; - return; - } // Must do this before sending any paint events because // the size may change in the paint event. diff --git a/src/widgets/kernel/qwidgetrepaintmanager_p.h b/src/widgets/kernel/qwidgetrepaintmanager_p.h index 36f42b7e1a..933142a307 100644 --- a/src/widgets/kernel/qwidgetrepaintmanager_p.h +++ b/src/widgets/kernel/qwidgetrepaintmanager_p.h @@ -64,10 +64,8 @@ class QPlatformTextureListWatcher; class QWidgetRepaintManager; struct BeginPaintInfo { - inline BeginPaintInfo() : wasFlushed(0), nothingToPaint(0), backingStoreRecreated(0) {} + inline BeginPaintInfo() : wasFlushed(0) {} uint wasFlushed : 1; - uint nothingToPaint : 1; - uint backingStoreRecreated : 1; }; #ifndef QT_NO_OPENGL