mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 08:45:25 +08:00
6.5.3 clean
This commit is contained in:
@ -90,9 +90,9 @@ void AbstractScrollArea::setViewport(QGraphicsWidget *viewport)
|
||||
if (m_viewport) {
|
||||
m_viewport->setParentItem(0);
|
||||
|
||||
QList<QGraphicsItem*> children = m_viewport->childItems();
|
||||
const QList<QGraphicsItem*> children = m_viewport->childItems();
|
||||
|
||||
foreach (QGraphicsItem *child, children)
|
||||
for (QGraphicsItem *child : children)
|
||||
child->setParentItem(0);
|
||||
|
||||
delete m_viewport;
|
||||
|
Reference in New Issue
Block a user