diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 7fccac513..239fefdf0 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -987,12 +987,6 @@ void QWidgetBackingStore::sync() BeginPaintInfo beginPaintInfo; beginPaint(toClean, windowSurface, &beginPaintInfo); - if (beginPaintInfo.nothingToPaint) { - for (int i = 0; i < opaqueNonOverlappedWidgets.size(); ++i) - resetWidget(opaqueNonOverlappedWidgets[i]); - dirty = QRegion(); - return; - } // Must do this before sending any paint events because // the size may change in the paint event. diff --git a/src/gui/painting/qbackingstore_p.h b/src/gui/painting/qbackingstore_p.h index 45b0ab109..732770525 100644 --- a/src/gui/painting/qbackingstore_p.h +++ b/src/gui/painting/qbackingstore_p.h @@ -55,9 +55,8 @@ QT_BEGIN_NAMESPACE class QWindowSurface; struct BeginPaintInfo { - inline BeginPaintInfo() : wasFlushed(false), nothingToPaint(false) {} + inline BeginPaintInfo() : wasFlushed(false) {} bool wasFlushed; - bool nothingToPaint; }; class Q_AUTOTEST_EXPORT QWidgetBackingStore