widgets: Remove unused arguments from QWidgetRepaintManager::beginPaint

Change-Id: I3720d8ef31e623e514fc2e382192d3c4f99fb4ed
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Tor Arne Vestbø 2019-08-16 17:07:08 +02:00
parent e2a1fb9015
commit 5085f8e211
2 changed files with 3 additions and 8 deletions

View File

@ -321,12 +321,8 @@ bool QWidgetRepaintManager::bltRect(const QRect &rect, int dx, int dy, QWidget *
The \a toClean region might be clipped by the window surface. The \a toClean region might be clipped by the window surface.
*/ */
void QWidgetRepaintManager::beginPaint(QRegion &toClean, QWidget *widget, QBackingStore *backingStore, void QWidgetRepaintManager::beginPaint(QRegion &toClean, QBackingStore *backingStore, BeginPaintInfo *returnInfo)
BeginPaintInfo *returnInfo, bool toCleanIsInTopLevelCoordinates)
{ {
Q_UNUSED(widget);
Q_UNUSED(toCleanIsInTopLevelCoordinates);
// Always flush repainted areas. // Always flush repainted areas.
dirtyOnScreen += toClean; dirtyOnScreen += toClean;
@ -1303,7 +1299,7 @@ void QWidgetRepaintManager::doSync()
#endif #endif
BeginPaintInfo beginPaintInfo; BeginPaintInfo beginPaintInfo;
beginPaint(toClean, tlw, store, &beginPaintInfo); beginPaint(toClean, store, &beginPaintInfo);
// Must do this before sending any paint events because // Must do this before sending any paint events because
// the size may change in the paint event. // the size may change in the paint event.

View File

@ -148,8 +148,7 @@ private:
void doSync(); void doSync();
bool bltRect(const QRect &rect, int dx, int dy, QWidget *widget); bool bltRect(const QRect &rect, int dx, int dy, QWidget *widget);
void beginPaint(QRegion &toClean, QWidget *widget, QBackingStore *backingStore, void beginPaint(QRegion &toClean, QBackingStore *backingStore, BeginPaintInfo *returnInfo);
BeginPaintInfo *returnInfo, bool toCleanIsInTopLevelCoordinates = true);
void endPaint(const QRegion &cleaned, QBackingStore *backingStore, BeginPaintInfo *beginPaintInfo); void endPaint(const QRegion &cleaned, QBackingStore *backingStore, BeginPaintInfo *beginPaintInfo);
QRegion dirtyRegion(QWidget *widget = nullptr) const; QRegion dirtyRegion(QWidget *widget = nullptr) const;