ItemChildRemovedChange handling added

This commit is contained in:
Uwe Rathmann 2023-10-17 14:34:20 +02:00
parent 5f31eb1e78
commit b31f94225d

View File

@ -915,10 +915,16 @@ void QskControl::itemChange( QQuickItem::ItemChange change,
break; break;
} }
case QQuickItem::ItemChildAddedChange: case QQuickItem::ItemChildAddedChange:
case QQuickItem::ItemChildRemovedChange:
{ {
if ( autoLayoutChildren() && qskIsAdjustableByLayout( value.item ) ) if ( autoLayoutChildren() )
polish(); {
if ( qskIsVisibleToLayout( value.item ) )
resetImplicitSize();
if ( qskIsAdjustableByLayout( value.item ) )
polish();
}
break; break;
} }
case QQuickItem::ItemActiveFocusHasChanged: case QQuickItem::ItemActiveFocusHasChanged: