remove code for always false condition in QWidgetBackingStore::sync()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-31 17:46:50 +02:00
parent 207077d7d4
commit 1601125c02
2 changed files with 1 additions and 8 deletions

View file

@ -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.

View file

@ -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