Commit 7a9cc349 authored by Eike Ziller's avatar Eike Ziller

QmlJsEditor: Avoid QtConcurrent::run

Change-Id: Id95acdeb2be21721950c6926494a5d2e5a00d8bb
Reviewed-by: default avatarMarco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent bbadda2f
......@@ -891,7 +891,7 @@ void FindReferences::findUsages(const QString &fileName, quint32 offset)
{
ModelManagerInterface *modelManager = ModelManagerInterface::instance();
QFuture<Usage> result = QtConcurrent::run(
QFuture<Usage> result = Utils::runAsync<Usage>(
&find_helper, modelManager->workingCopy(),
modelManager->snapshot(), fileName, offset,
QString());
......@@ -908,7 +908,7 @@ void FindReferences::renameUsages(const QString &fileName, quint32 offset,
if (newName.isNull())
newName = QLatin1String("");
QFuture<Usage> result = QtConcurrent::run(
QFuture<Usage> result = Utils::runAsync<Usage>(
&find_helper, modelManager->workingCopy(),
modelManager->snapshot(), fileName, offset,
newName);
......
......@@ -152,7 +152,7 @@ void QmlTaskManager::updateMessagesNow(bool updateSemantic)
// process them
QFuture<FileErrorMessages> future =
QtConcurrent::run<FileErrorMessages>(
Utils::runAsync<FileErrorMessages>(
&collectMessages, modelManager->newestSnapshot(), modelManager->projectInfos(),
modelManager->defaultVContext(Dialect::AnyLanguage), updateSemantic);
m_messageCollector.setFuture(future);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment