CppTools/Editor: Use Utils::runAsync

Change-Id: Ifcc2a34e3478eb84f95221b79e39f7a670e6b2e0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-02-12 12:58:56 +01:00
parent 6dbbc96112
commit 6e5d4b892e
9 changed files with 15 additions and 16 deletions

View File

@@ -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()