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;
}
case QQuickItem::ItemChildAddedChange:
case QQuickItem::ItemChildRemovedChange:
{
if ( autoLayoutChildren() && qskIsAdjustableByLayout( value.item ) )
polish();
if ( autoLayoutChildren() )
{
if ( qskIsVisibleToLayout( value.item ) )
resetImplicitSize();
if ( qskIsAdjustableByLayout( value.item ) )
polish();
}
break;
}
case QQuickItem::ItemActiveFocusHasChanged: