TaskTree: Get rid of Storage subclass of GroupItem

Make the c'tor of the GroupItem taking the TreeStorageBase
public instead.

This addresses the 20th point in the master task below.

Task-number: QTCREATORBUG-28741
Change-Id: I78320ec24b4e4b915ab549135fb93b45c658b9f2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-11-19 14:18:41 +01:00
parent 69aa92159c
commit ced3052e7f
23 changed files with 121 additions and 126 deletions

View File

@@ -248,7 +248,7 @@ GitDiffEditorController::GitDiffEditorController(IDocument *document,
};
const Group root {
Tasking::Storage(diffInputStorage),
diffInputStorage,
ProcessTask(onDiffSetup, onDiffDone, CallDoneIf::Success),
postProcessTask(diffInputStorage)
};
@@ -333,8 +333,8 @@ FileListDiffController::FileListDiffController(IDocument *document, const QStrin
};
const Group root {
Tasking::Storage(storage),
Tasking::Storage(diffInputStorage),
storage,
diffInputStorage,
Group {
parallel,
continueOnSuccess,
@@ -527,8 +527,8 @@ ShowController::ShowController(IDocument *document, const QString &id)
};
const Group root {
Tasking::Storage(storage),
Tasking::Storage(diffInputStorage),
storage,
diffInputStorage,
parallel,
onGroupSetup([this] { setStartupFile(VcsBase::source(this->document()).toString()); }),
Group {