using QMetaObject instead of QTimer for delayed calls
This commit is contained in:
parent
eb771f8328
commit
bf37fe000c
@ -126,8 +126,8 @@ void QskSubWindowArea::itemChange(
|
||||
{
|
||||
// the child is not fully constructed
|
||||
// and we have to delay checking for sub windows
|
||||
QTimer::singleShot( 0, this,
|
||||
[ this ] { qskUpdateEventFilter( this ); } );
|
||||
QMetaObject::invokeMethod( this,
|
||||
[ this ] { qskUpdateEventFilter( this ); }, Qt::QueuedConnection );
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -103,7 +103,8 @@ QskHunspellTextPredictor::QskHunspellTextPredictor(
|
||||
m_data->locale = locale;
|
||||
|
||||
// make sure we call virtual functions:
|
||||
QTimer::singleShot( 0, this, &QskHunspellTextPredictor::loadDictionaries );
|
||||
QMetaObject::invokeMethod( this,
|
||||
&QskHunspellTextPredictor::loadDictionaries, Qt::QueuedConnection );
|
||||
}
|
||||
|
||||
QskHunspellTextPredictor::~QskHunspellTextPredictor()
|
||||
|
Loading…
x
Reference in New Issue
Block a user