OSDN Git Service

remove noop QWidgetBackingStore::updateList()
authorIvailo Monev <xakepa10@gmail.com>
Thu, 10 Nov 2022 04:08:18 +0000 (06:08 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 10 Nov 2022 04:08:18 +0000 (06:08 +0200)
does nothing since Qt::WA_StaticContents was dropped

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/painting/qbackingstore.cpp
src/gui/painting/qbackingstore_p.h

index 81cd8dc..44a6b9c 100644 (file)
@@ -395,18 +395,6 @@ void QWidgetBackingStore::removeDirtyWidget(QWidget *w)
     }
 }
 
-void QWidgetBackingStore::updateLists(QWidget *cur)
-{
-    if (!cur)
-        return;
-
-    foreach (QObject *objchild, cur->children()) {
-        QWidget *child = qobject_cast<QWidget*>(objchild);
-        if (child)
-            updateLists(child);
-    }
-}
-
 QWidgetBackingStore::QWidgetBackingStore(QWidget *topLevel)
     : tlw(topLevel)
 {
@@ -417,9 +405,6 @@ QWidgetBackingStore::QWidgetBackingStore(QWidget *topLevel)
     // The QWindowSurface constructor will call QWidget::setWindowSurface(),
     // but automatically created surfaces should not be added to the topdata.
     topLevel->d_func()->topData()->windowSurface = 0;
-
-    // Ensure all existing subsurfaces and static widgets are added to their respective lists.
-    updateLists(topLevel);
 }
 
 QWidgetBackingStore::~QWidgetBackingStore()
index f255e60..6e99ce5 100644 (file)
@@ -91,8 +91,6 @@ private:
 
     void removeDirtyWidget(QWidget *w);
 
-    void updateLists(QWidget *widget);
-
     inline void addDirtyWidget(QWidget *widget, const QRegion &rgn)
     {
         if (widget && !widget->d_func()->inDirtyList && !widget->data->in_destructor) {