widgets: Merge QWidgetRepaintManager::topLevelRect into callsite

Change-Id: Ia9bb0c396b8175f644e337ca73086208c637ed2d
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Tor Arne Vestbø 2019-08-23 14:51:11 +02:00
parent 9b3935492b
commit 10e8faa72c
2 changed files with 1 additions and 3 deletions

View File

@ -799,7 +799,7 @@ void QWidgetRepaintManager::paintAndFlush()
bool repaintAllWidgets = false;
const bool inTopLevelResize = tlw->d_func()->maybeTopData()->inTopLevelResize;
const QRect tlwRect(topLevelRect());
const QRect tlwRect = tlw->data->crect;
const QRect surfaceGeometry(tlwRect.topLeft(), store->size());
if ((inTopLevelResize || surfaceGeometry.size() != tlwRect.size()) && !updatesDisabled) {
if (hasStaticContents() && !store->size().isEmpty() ) {

View File

@ -123,8 +123,6 @@ private:
bool hasStaticContents() const;
void updateStaticContentsSize();
QRect topLevelRect() const { return tlw->data->crect; }
QWidget *tlw = nullptr;
QBackingStore *store = nullptr;