From 265fa13bdbf75ecc6bb94d2bf7aefcadc583f745 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 22 Jan 2016 11:17:29 +0100 Subject: [PATCH] QmlJSModelManager: Use Utils::runAsync instead of QtConcurrent::run To get rid of the shared thread pool (and to use the API with the less ugly implementation). Change-Id: Ia93977b8b394aff8e410d6d81446c23e32b7aed5 Reviewed-by: Marco Benelli Reviewed-by: Eike Ziller --- src/libs/qmljs/qmljsmodelmanagerinterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp index bbd1d4bcd2c..c059e22d663 100644 --- a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp +++ b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp @@ -319,10 +319,10 @@ QFuture ModelManagerInterface::refreshSourceFiles(const QStringList &sourc if (sourceFiles.isEmpty()) return QFuture(); - QFuture result = QtConcurrent::run(&ModelManagerInterface::parse, - workingCopyInternal(), sourceFiles, - this, Dialect(Dialect::Qml), - emitDocumentOnDiskChanged); + QFuture result = Utils::runAsync(&ModelManagerInterface::parse, + workingCopyInternal(), sourceFiles, + this, Dialect(Dialect::Qml), + emitDocumentOnDiskChanged); cleanupFutures(); m_futures.append(result);