From fb276dbdd2d8646765cb73eaf24fe66e6272d6b3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 5 Jul 2021 08:16:09 +0300 Subject: [PATCH] scene: Avoid discarding quads in more cases --- src/item.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/item.cpp b/src/item.cpp index aa765fdc6c..81db8de884 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -138,7 +138,6 @@ void Item::addChild(Item *item) m_childItems.append(item); updateBoundingRect(); scheduleRepaint(item->boundingRect().translated(item->position())); - discardQuads(); } void Item::removeChild(Item *item) @@ -153,7 +152,6 @@ void Item::removeChild(Item *item) disconnect(item, &Item::boundingRectChanged, this, &Item::updateBoundingRect); updateBoundingRect(); - discardQuads(); } QList Item::childItems() const @@ -289,8 +287,6 @@ void Item::stackBefore(Item *sibling) scheduleRepaint(boundingRect()); sibling->scheduleRepaint(sibling->boundingRect()); - - discardQuads(); } void Item::stackAfter(Item *sibling) @@ -318,8 +314,6 @@ void Item::stackAfter(Item *sibling) scheduleRepaint(boundingRect()); sibling->scheduleRepaint(sibling->boundingRect()); - - discardQuads(); } void Item::stackChildren(const QList &children) @@ -336,7 +330,6 @@ void Item::stackChildren(const QList &children) #endif m_childItems = children; - discardQuads(); } void Item::scheduleRepaint(const QRegion ®ion)