destructor code reverted
This commit is contained in:
parent
5fc7403ecc
commit
d611e9cf57
@ -208,11 +208,17 @@ QskWindow::~QskWindow()
|
||||
// unefficient way, leading to lots of QQuickItem::ItemChildRemovedChange
|
||||
// depending operations.
|
||||
|
||||
Q_D( QskWindow );
|
||||
QVector< QPointer< QQuickItem > > items;
|
||||
|
||||
auto contentItem = d->contentItem;
|
||||
d->contentItem = nullptr;
|
||||
delete contentItem;
|
||||
const auto children = contentItem()->childItems();
|
||||
for ( auto child : children )
|
||||
{
|
||||
if ( child->parent() == contentItem() )
|
||||
items += child;
|
||||
}
|
||||
|
||||
for ( auto& item : qskAsConst( items ) )
|
||||
delete item;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user