code removed from QskControl::changeEvent as it is already done in

QskControl::event
This commit is contained in:
Uwe Rathmann 2018-11-03 17:48:34 +01:00
parent aeb29e855a
commit 04c1c883f6
1 changed files with 1 additions and 16 deletions

View File

@ -1474,23 +1474,8 @@ void QskControl::hoverLeaveEvent( QHoverEvent* event )
setSkinStateFlag( Hovered, false );
}
void QskControl::changeEvent( QEvent* event )
void QskControl::changeEvent( QEvent* )
{
if ( event->type() == QEvent::StyleChange )
{
/*
the skin has changed and we might have totally
different skinlets, that can't deal with nodes
created from other skinlets
*/
d_func()->clearPreviousNodes = true;
resetImplicitSize();
polish();
if ( flags() & QQuickItem::ItemHasContents )
update();
}
}
void QskControl::gestureEvent( QskGestureEvent* )