Remove hasDirtyFromPreviousSync from backingstore.

It's always false (used to be some qws specific variable).

Change-Id: I3dc185dba4c778797f180410ce8d293336ecfd9c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
bb10
Girish Ramakrishnan 2012-04-11 22:42:41 -07:00 committed by Qt by Nokia
parent a5dccb0ece
commit 40a1e8eccf
2 changed files with 2 additions and 9 deletions

View File

@ -696,8 +696,7 @@ void QWidgetBackingStore::updateLists(QWidget *cur)
}
QWidgetBackingStore::QWidgetBackingStore(QWidget *topLevel)
: tlw(topLevel), dirtyOnScreenWidgets(0), hasDirtyFromPreviousSync(false)
, fullUpdatePending(0)
: tlw(topLevel), dirtyOnScreenWidgets(0), fullUpdatePending(0)
{
store = tlw->backingStore();
Q_ASSERT(store);
@ -982,9 +981,6 @@ void QWidgetBackingStore::sync()
if (updatesDisabled)
return;
if (hasDirtyFromPreviousSync)
dirty += dirtyFromPreviousSync;
// Contains everything that needs repaint.
QRegion toClean(dirty);

View File

@ -85,9 +85,7 @@ public:
inline bool isDirty() const
{
return !(dirtyWidgets.isEmpty() && dirty.isEmpty() && !hasDirtyFromPreviousSync
&& !fullUpdatePending
);
return !(dirtyWidgets.isEmpty() && dirty.isEmpty() && !fullUpdatePending);
}
// ### Qt 4.6: Merge into a template function (after MSVC isn't supported anymore).
@ -105,7 +103,6 @@ private:
QVector<QWidget *> *dirtyOnScreenWidgets;
QList<QWidget *> staticWidgets;
QBackingStore *store;
uint hasDirtyFromPreviousSync : 1;
uint fullUpdatePending : 1;
QPoint tlwOffset;