}
}
-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)
{
// 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()
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) {