missing polish calls added
This commit is contained in:
parent
d19d82a65f
commit
62e91ebcee
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user