forked from qt-creator/qt-creator
CMakeProjectManager: Use QtConcurrent invocation for async run
Change-Id: I03b23a6bd32bfaa435ddddab1a7ab47a5203ff44 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -14,13 +14,17 @@
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <QDir>
|
||||
#include <QFutureInterface>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QVersionNumber>
|
||||
|
||||
#include <vector>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
template <typename Ret>
|
||||
class QPromise;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace CMakeProjectManager::Internal {
|
||||
|
||||
namespace FileApiDetails {
|
||||
@@ -218,7 +222,7 @@ public:
|
||||
class FileApiParser
|
||||
{
|
||||
public:
|
||||
static FileApiData parseData(QFutureInterface<std::shared_ptr<FileApiQtcData>> &fi,
|
||||
static FileApiData parseData(QPromise<std::shared_ptr<FileApiQtcData>> &promise,
|
||||
const Utils::FilePath &replyFilePath,
|
||||
const QString &cmakeBuildType,
|
||||
QString &errorMessage);
|
||||
|
||||
Reference in New Issue
Block a user