forked from qt-creator/qt-creator
CompilationDBParser: Use QtConcurrent invocation for async run
Change-Id: I9649db2d7c890e89ddc3f5da36715b4fa6d5219b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#include <coreplugin/progressmanager/progressmanager.h>
|
#include <coreplugin/progressmanager/progressmanager.h>
|
||||||
#include <projectexplorer/treescanner.h>
|
#include <projectexplorer/treescanner.h>
|
||||||
|
#include <utils/asynctask.h>
|
||||||
#include <utils/mimeutils.h>
|
#include <utils/mimeutils.h>
|
||||||
#include <utils/runextensions.h>
|
|
||||||
|
|
||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
@@ -95,7 +95,7 @@ void CompilationDbParser::start()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Thread 2: Parse the project file.
|
// Thread 2: Parse the project file.
|
||||||
const QFuture<DbContents> future = runAsync(&CompilationDbParser::parseProject, this);
|
const QFuture<DbContents> future = Utils::asyncRun(&CompilationDbParser::parseProject, this);
|
||||||
Core::ProgressManager::addTask(future,
|
Core::ProgressManager::addTask(future,
|
||||||
Tr::tr("Parse \"%1\" project").arg(m_projectName),
|
Tr::tr("Parse \"%1\" project").arg(m_projectName),
|
||||||
"CompilationDatabase.Parse");
|
"CompilationDatabase.Parse");
|
||||||
|
|||||||
Reference in New Issue
Block a user