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
|
// the child is not fully constructed
|
||||||
// and we have to delay checking for sub windows
|
// and we have to delay checking for sub windows
|
||||||
QTimer::singleShot( 0, this,
|
QMetaObject::invokeMethod( this,
|
||||||
[ this ] { qskUpdateEventFilter( this ); } );
|
[ this ] { qskUpdateEventFilter( this ); }, Qt::QueuedConnection );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,8 @@ QskHunspellTextPredictor::QskHunspellTextPredictor(
|
||||||
m_data->locale = locale;
|
m_data->locale = locale;
|
||||||
|
|
||||||
// make sure we call virtual functions:
|
// make sure we call virtual functions:
|
||||||
QTimer::singleShot( 0, this, &QskHunspellTextPredictor::loadDictionaries );
|
QMetaObject::invokeMethod( this,
|
||||||
|
&QskHunspellTextPredictor::loadDictionaries, Qt::QueuedConnection );
|
||||||
}
|
}
|
||||||
|
|
||||||
QskHunspellTextPredictor::~QskHunspellTextPredictor()
|
QskHunspellTextPredictor::~QskHunspellTextPredictor()
|
||||||
|
|
Loading…
Reference in New Issue