widgets: Handle all flush tracking via markNeedsFlush

Change-Id: I3652c09012e36468ef90870637988b3fe8c5e735
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Tor Arne Vestbø 2019-08-23 14:55:07 +02:00
parent 10e8faa72c
commit 6dd5cb40ef

View File

@ -964,8 +964,11 @@ void QWidgetRepaintManager::paintAndFlush()
}
#endif
// Always flush repainted areas
topLevelNeedsFlush += toClean;
// Always flush repainted areas. FIXME: We should mark individual widgets,
// not the top level widget unconditionally, as this results in always
// flushing the top level widget, even if the painted region is entirely
// within a native child.
markNeedsFlush(tlw, toClean, QPoint());
store->beginPaint(toClean);