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

@@ -60,7 +60,8 @@ public:
});
}
void doRun() override
private:
Tasking::GroupItem runRecipe() final
{
using namespace Tasking;
@@ -79,10 +80,9 @@ public:
};
const auto onDone = [this] { m_runAutoreconf = false; };
runTaskTree({onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask()});
return Group { onGroupSetup(onSetup), onGroupDone(onDone), defaultProcessTask() };
}
private:
bool m_runAutoreconf = false;
StringAspect arguments{this};
};