widgets: Rename QWidgetRepaintManager::doSync to paintAndFlush
Change-Id: Ie41bb76d33d59f70eb418f845defc212396d3915 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
68cc2c2779
commit
a0484b8277
@ -846,7 +846,7 @@ void QWidgetRepaintManager::sync(QWidget *exposedWidget, const QRegion &exposedR
|
|||||||
markDirtyOnScreen(exposedRegion, exposedWidget, QPoint());
|
markDirtyOnScreen(exposedRegion, exposedWidget, QPoint());
|
||||||
|
|
||||||
if (syncAllowed())
|
if (syncAllowed())
|
||||||
doSync();
|
paintAndFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -871,10 +871,10 @@ void QWidgetRepaintManager::sync()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (syncAllowed())
|
if (syncAllowed())
|
||||||
doSync();
|
paintAndFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QWidgetRepaintManager::doSync()
|
void QWidgetRepaintManager::paintAndFlush()
|
||||||
{
|
{
|
||||||
const bool updatesDisabled = !tlw->updatesEnabled();
|
const bool updatesDisabled = !tlw->updatesEnabled();
|
||||||
bool repaintAllWidgets = false;
|
bool repaintAllWidgets = false;
|
||||||
|
@ -175,7 +175,8 @@ private:
|
|||||||
return !(dirtyWidgets.isEmpty() && dirty.isEmpty() && dirtyRenderToTextureWidgets.isEmpty());
|
return !(dirtyWidgets.isEmpty() && dirty.isEmpty() && dirtyRenderToTextureWidgets.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void doSync();
|
void paintAndFlush();
|
||||||
|
|
||||||
void flush(QWidget *widget = nullptr);
|
void flush(QWidget *widget = nullptr);
|
||||||
void flush(QWidget *widget, const QRegion ®ion, QPlatformTextureList *widgetTextures);
|
void flush(QWidget *widget, const QRegion ®ion, QPlatformTextureList *widgetTextures);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user