forked from qt-creator/qt-creator
Use invokeMethod instead of single shot timer with 0 timeout
Change-Id: I3ffc4bfdbc6fc58d4b90aa53427eb80653c22b65 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -34,8 +34,6 @@
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/session.h>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
using namespace Core;
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
@@ -168,7 +166,7 @@ void CppIncludesFilter::prepareSearch(const QString &entry)
|
||||
void CppIncludesFilter::refresh(QFutureInterface<void> &future)
|
||||
{
|
||||
Q_UNUSED(future)
|
||||
QTimer::singleShot(0, this, &CppIncludesFilter::markOutdated);
|
||||
QMetaObject::invokeMethod(this, &CppIncludesFilter::markOutdated, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void CppIncludesFilter::markOutdated()
|
||||
|
||||
Reference in New Issue
Block a user