mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
remove code for always false condition in QWidgetBackingStore::sync()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
207077d7d4
commit
1601125c02
2 changed files with 1 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue