summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qwidgetrepaintmanager.cpp6
-rw-r--r--src/widgets/kernel/qwidgetrepaintmanager_p.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/widgets/kernel/qwidgetrepaintmanager.cpp b/src/widgets/kernel/qwidgetrepaintmanager.cpp
index 65c07c7648..183337b693 100644
--- a/src/widgets/kernel/qwidgetrepaintmanager.cpp
+++ b/src/widgets/kernel/qwidgetrepaintmanager.cpp
@@ -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;
diff --git a/src/widgets/kernel/qwidgetrepaintmanager_p.h b/src/widgets/kernel/qwidgetrepaintmanager_p.h
index ac671c18c0..50f45afcd4 100644
--- a/src/widgets/kernel/qwidgetrepaintmanager_p.h
+++ b/src/widgets/kernel/qwidgetrepaintmanager_p.h
@@ -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);