widgets: Rename QWidgetRepaintManager::doSync to paintAndFlush

Change-Id: Ie41bb76d33d59f70eb418f845defc212396d3915
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Tor Arne Vestbø 2019-08-21 15:22:52 +02:00
parent 68cc2c2779
commit a0484b8277
2 changed files with 5 additions and 4 deletions

View File

@ -846,7 +846,7 @@ void QWidgetRepaintManager::sync(QWidget *exposedWidget, const QRegion &exposedR
markDirtyOnScreen(exposedRegion, exposedWidget, QPoint());
if (syncAllowed())
doSync();
paintAndFlush();
}
/*!
@ -871,10 +871,10 @@ void QWidgetRepaintManager::sync()
}
if (syncAllowed())
doSync();
paintAndFlush();
}
void QWidgetRepaintManager::doSync()
void QWidgetRepaintManager::paintAndFlush()
{
const bool updatesDisabled = !tlw->updatesEnabled();
bool repaintAllWidgets = false;

View File

@ -175,7 +175,8 @@ private:
return !(dirtyWidgets.isEmpty() && dirty.isEmpty() && dirtyRenderToTextureWidgets.isEmpty());
}
void doSync();
void paintAndFlush();
void flush(QWidget *widget = nullptr);
void flush(QWidget *widget, const QRegion &region, QPlatformTextureList *widgetTextures);