TaskTree: Introduce onGroup...() functions

The OnGroup... elements are going to be replaced with
these functions.

Change-Id: Ia271a89062cc9c6b18384607b20b1f68d273bcde
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-05-17 19:57:23 +02:00
parent ceff14303a
commit 04382d39a0
2 changed files with 52 additions and 2 deletions

View File

@@ -40,6 +40,16 @@ private:
Guard &m_guard;
};
TaskItem onGroupDone(const TaskItem::GroupEndHandler &handler)
{
return Group::onGroupDone(handler);
}
TaskItem onGroupError(const TaskItem::GroupEndHandler &handler)
{
return Group::onGroupError(handler);
}
static TaskAction toTaskAction(bool success)
{
return success ? TaskAction::StopWithDone : TaskAction::StopWithError;