missing polish calls added

This commit is contained in:
Uwe Rathmann 2019-05-12 12:26:34 +02:00
parent d19d82a65f
commit 62e91ebcee

View File

@ -262,6 +262,11 @@ class QskControlPrivate final : public QQuickItemPrivate
bool autoFillBackground : 1;
bool autoLayoutChildren : 1;
/*
This one is about calling updateLayout whenever layoutRect()
has changed -> whe should find a better name: TODO
*/
bool polishOnResize : 1;
bool blockedPolish : 1;
@ -1438,6 +1443,16 @@ bool QskControl::event( QEvent* event )
if ( d_func()->autoLayoutChildren )
resetImplicitSize();
if ( d_func()->polishOnResize )
polish();
break;
}
case QEvent::ContentsRectChange:
{
if ( d_func()->polishOnResize )
polish();
break;
}
}