widgets: Merge QWidgetRepaintManager::topLevelRect into callsite
Change-Id: Ia9bb0c396b8175f644e337ca73086208c637ed2d Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
9b3935492b
commit
10e8faa72c
@ -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() ) {
|
||||
|
@ -123,8 +123,6 @@ private:
|
||||
bool hasStaticContents() const;
|
||||
void updateStaticContentsSize();
|
||||
|
||||
QRect topLevelRect() const { return tlw->data->crect; }
|
||||
|
||||
QWidget *tlw = nullptr;
|
||||
QBackingStore *store = nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user