forked from qt-creator/qt-creator
CppTools/Editor: Use Utils::runAsync
Change-Id: Ifcc2a34e3478eb84f95221b79e39f7a670e6b2e0 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -43,9 +43,9 @@
|
||||
|
||||
#include <utils/proxyaction.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/runextensions.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
|
||||
#include <QtConcurrentRun>
|
||||
#include <QVarLengthArray>
|
||||
|
||||
using namespace CPlusPlus;
|
||||
@@ -256,7 +256,7 @@ void FunctionDeclDefLinkFinder::startFindLinkAt(
|
||||
// handle the rest in a thread
|
||||
m_watcher.reset(new QFutureWatcher<QSharedPointer<FunctionDeclDefLink> >());
|
||||
connect(m_watcher.data(), SIGNAL(finished()), this, SLOT(onFutureDone()));
|
||||
m_watcher->setFuture(QtConcurrent::run(&findLinkHelper, result, refactoringChanges));
|
||||
m_watcher->setFuture(Utils::runAsync(findLinkHelper, result, refactoringChanges));
|
||||
}
|
||||
|
||||
FunctionDeclDefLink::FunctionDeclDefLink()
|
||||
|
||||
Reference in New Issue
Block a user