using postEvent instead of sendEvent

This commit is contained in:
Uwe Rathmann 2020-03-13 18:11:31 +01:00
parent e8f155c482
commit 72b1fb48c9

View File

@ -301,8 +301,8 @@ bool QskHintAnimatorTable::cleanup()
{ {
if ( qskCheckReceiverThread( control ) ) if ( qskCheckReceiverThread( control ) )
{ {
QskAnimatorEvent event( aspect, QskAnimatorEvent::Terminated ); auto event = new QskAnimatorEvent( aspect, QskAnimatorEvent::Terminated );
QCoreApplication::sendEvent( control, &event ); QCoreApplication::postEvent( control, event );
} }
} }
} }