summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-08-16 16:59:33 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-08-20 21:08:32 +0200
commit38e55a26a484e292f6c42644b0902cd3c94f19d4 (patch)
treefd26d1544abc660a7afeefb30440b21e200c8fb7 /src/widgets/kernel
parentaa8393c94fea01a4806b204fd3aa343a4e90666b (diff)
widgets: Remove dead members from BeginPaintInfo
The flags haven't been used since 2011 (6ce6b8a37) and is dead code. Change-Id: Ic5c47b30326ff70534bbf1aa37b25bae666b6b96 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qwidgetrepaintmanager.cpp7
-rw-r--r--src/widgets/kernel/qwidgetrepaintmanager_p.h4
2 files changed, 1 insertions, 10 deletions
diff --git a/src/widgets/kernel/qwidgetrepaintmanager.cpp b/src/widgets/kernel/qwidgetrepaintmanager.cpp
index 4383b4c168..cbad1d3f04 100644
--- a/src/widgets/kernel/qwidgetrepaintmanager.cpp
+++ b/src/widgets/kernel/qwidgetrepaintmanager.cpp
@@ -1306,13 +1306,6 @@ void QWidgetRepaintManager::doSync()
BeginPaintInfo beginPaintInfo;
beginPaint(toClean, tlw, store, &beginPaintInfo);
- if (beginPaintInfo.nothingToPaint) {
- for (int i = 0; i < opaqueNonOverlappedWidgets.size(); ++i)
- resetWidget(opaqueNonOverlappedWidgets[i]);
- dirty = QRegion();
- updateRequestSent = false;
- return;
- }
// Must do this before sending any paint events because
// the size may change in the paint event.
diff --git a/src/widgets/kernel/qwidgetrepaintmanager_p.h b/src/widgets/kernel/qwidgetrepaintmanager_p.h
index 36f42b7e1a..933142a307 100644
--- a/src/widgets/kernel/qwidgetrepaintmanager_p.h
+++ b/src/widgets/kernel/qwidgetrepaintmanager_p.h
@@ -64,10 +64,8 @@ class QPlatformTextureListWatcher;
class QWidgetRepaintManager;
struct BeginPaintInfo {
- inline BeginPaintInfo() : wasFlushed(0), nothingToPaint(0), backingStoreRecreated(0) {}
+ inline BeginPaintInfo() : wasFlushed(0) {}
uint wasFlushed : 1;
- uint nothingToPaint : 1;
- uint backingStoreRecreated : 1;
};
#ifndef QT_NO_OPENGL