blockin update calss, when not having any content ( avoids warnings from
Qt, when being built in debug mode )
This commit is contained in:
parent
3f28bd463f
commit
609ab2d54b
@ -731,6 +731,7 @@ void QskControl::updateControlFlag( uint flag, bool on )
|
||||
case QskControl::DebugForceBackground:
|
||||
{
|
||||
// no need to mark it dirty
|
||||
if ( flags() & QQuickItem::ItemHasContents )
|
||||
update();
|
||||
break;
|
||||
}
|
||||
@ -1353,6 +1354,8 @@ bool QskControl::event( QEvent* event )
|
||||
|
||||
resetImplicitSize();
|
||||
polish();
|
||||
|
||||
if ( flags() & QQuickItem::ItemHasContents )
|
||||
update();
|
||||
|
||||
changeEvent( event );
|
||||
@ -1441,6 +1444,8 @@ void QskControl::changeEvent( QEvent* event )
|
||||
|
||||
resetImplicitSize();
|
||||
polish();
|
||||
|
||||
if ( flags() & QQuickItem::ItemHasContents )
|
||||
update();
|
||||
}
|
||||
}
|
||||
@ -1639,7 +1644,14 @@ void QskControl::updatePolish()
|
||||
}
|
||||
|
||||
if ( !d->isInitiallyPainted )
|
||||
{
|
||||
/*
|
||||
We should find a better way for identifying, when
|
||||
an item is about to be shown, than making it dependend
|
||||
from polishing and the existence of scene graph nodes. TODO ...
|
||||
*/
|
||||
aboutToShow();
|
||||
}
|
||||
|
||||
updateLayout();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user