avoid update calls for items without content

This commit is contained in:
Uwe Rathmann 2019-02-05 10:11:29 +01:00
parent 722fb8511c
commit 35a0d8336b

View File

@ -1665,7 +1665,7 @@ void QskControl::itemChange( QQuickItem::ItemChange change,
if ( d->controlFlags & QskControl::DeferredUpdate ) if ( d->controlFlags & QskControl::DeferredUpdate )
{ {
if ( d->dirtyAttributes ) if ( d->dirtyAttributes && ( d->flags & QQuickItem::ItemHasContents ) )
update(); update();
} }
} }