AbstractProcessStep: Use task tree for all subclasses

Introduce AbstractProcessStep::runRecipe() virtual method
with the default implementation.

Task-number: QTCREATORBUG-29168
Change-Id: Iac75f4c38f8ee91ad8ac9324bb27881a3722911f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-07-12 16:30:33 +02:00
parent 0b2565a3e7
commit 47ac604aea
16 changed files with 61 additions and 103 deletions

View File

@@ -63,7 +63,7 @@ public:
}
private:
void doRun() final;
Tasking::GroupItem runRecipe() final;
CommandLine getCommandLine(const QString &arguments)
{
@@ -74,7 +74,7 @@ private:
StringAspect arguments{this};
};
void ConfigureStep::doRun()
Tasking::GroupItem ConfigureStep::runRecipe()
{
using namespace Tasking;
@@ -100,7 +100,7 @@ void ConfigureStep::doRun()
};
const auto onDone = [this] { m_runConfigure = false; };
runTaskTree({onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask()});
return Group { onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask() };
}
// ConfigureStepFactory