forked from qt-creator/qt-creator
TaskTree: Get rid of onGroupError element
Make it possible to setup onGroupDone element with additional OnDone argument. The onGroupDone handler may accept extra DoneResult argument. The onGroupDone handler may also tweak the success bit of a group. All above features conform to the behavior of the task done handler. Task-number: QTCREATORBUG-29834 Change-Id: I125bdfe155e585678fb33410632246401cbc9390 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -369,15 +369,11 @@ GroupItem CMakeBuildStep::runRecipe()
|
||||
emit addOutput(Tr::tr("Project did not parse successfully, cannot build."),
|
||||
OutputFormat::ErrorMessage);
|
||||
};
|
||||
const auto onEnd = [this] {
|
||||
updateDeploymentData();
|
||||
};
|
||||
Group root {
|
||||
ignoreReturnValue() ? finishAllAndDone : stopOnError,
|
||||
ProjectParserTask(onParserSetup, onParserError, CallDoneIf::Error),
|
||||
defaultProcessTask(),
|
||||
onGroupDone(onEnd),
|
||||
onGroupError(onEnd)
|
||||
onGroupDone([this] { updateDeploymentData(); })
|
||||
};
|
||||
return root;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user