summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-08-21 15:22:52 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-08-22 09:44:42 +0200
commita0484b8277f142e8a8c06fd1e6c840694f88f7fa (patch)
tree5d710cf6089f524f1add85264364525e324eefda /src/widgets/kernel
parent68cc2c2779aa8f75c14415ecbd19a9c6fdee6ac5 (diff)
widgets: Rename QWidgetRepaintManager::doSync to paintAndFlush
Change-Id: Ie41bb76d33d59f70eb418f845defc212396d3915 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
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);