forked from qt-creator/qt-creator
TaskTree: Make setup handler optional
Change-Id: Idfcaaf5cc5f69895d8cf9bf6e4ee673e524b61fe Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -956,8 +956,8 @@ void GroupItem::addChildren(const QList<GroupItem> &children)
|
||||
GroupItem GroupItem::withTimeout(const GroupItem &item, milliseconds timeout,
|
||||
const GroupEndHandler &handler)
|
||||
{
|
||||
const TimeoutTask::EndHandler taskHandler = handler
|
||||
? [handler](const milliseconds &) { handler(); } : TimeoutTask::EndHandler();
|
||||
const TimeoutTask::EndFunction taskHandler = handler
|
||||
? [handler](const milliseconds &) { handler(); } : TimeoutTask::EndFunction();
|
||||
return Group {
|
||||
parallel,
|
||||
stopOnFinished,
|
||||
|
||||
Reference in New Issue
Block a user