Use invokeMethod instead of single shot timer with 0 timeout

Refactor it in coreplugin.

Change-Id: I6aaad1b9270a8ff8a4a0bea6a1fff806b2fe190b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2021-01-28 11:29:14 +01:00
parent 9c646d55cd
commit be1d33299e
18 changed files with 28 additions and 38 deletions

View File

@@ -408,7 +408,7 @@ void ActionContainerPrivate::scheduleUpdate()
if (m_updateRequested)
return;
m_updateRequested = true;
QTimer::singleShot(0, this, &ActionContainerPrivate::update);
QMetaObject::invokeMethod(this, &ActionContainerPrivate::update, Qt::QueuedConnection);
}
void ActionContainerPrivate::update()