aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-06-17 12:39:40 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-06-17 15:06:46 +0000
commit295a0c559396c725c3d9a157661ea2acda129ca8 (patch)
treec8733de6790394740e2502f44ff60503b9c9e616
parente3aa5a06584af0d9af36154c1b3f34cd2b043587 (diff)
Make: Fake progress when running cmake
Neither tea-leaf nor fileapi provides progress information on cmake's configure/generate runs. So fake it. Change-Id: I0e336b4ba145793df6674f4847be1dddad7508cf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprocess.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprocess.cpp b/src/plugins/cmakeprojectmanager/cmakeprocess.cpp
index 41529f1752..9e54b15c02 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprocess.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprocess.cpp
@@ -139,9 +139,10 @@ void CMakeProcess::run(const BuildDirParameters &parameters, const QStringList &
auto future = std::make_unique<QFutureInterface<void>>();
future->setProgressRange(0, 1);
- Core::ProgressManager::addTask(future->future(),
- tr("Configuring \"%1\"").arg(parameters.projectName),
- "CMake.Configure");
+ Core::ProgressManager::addTimedTask(*future.get(),
+ tr("Configuring \"%1\"").arg(parameters.projectName),
+ "CMake.Configure",
+ 10);
process->setCommand(commandLine);
emit started();