widgets: Remove dead members from BeginPaintInfo
The flags haven't been used since 2011 (6ce6b8a37) and is dead code. Change-Id: Ic5c47b30326ff70534bbf1aa37b25bae666b6b96 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
aa8393c94f
commit
38e55a26a4
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user