Utils: Introduce TaskTree and Tasking namespace

The TaskTree class is responsible for running async task tree
structure defined in a declarative way.

Change-Id: Ieaf706c7d2efdc8b431a17b2db8b28bf4b7c38e5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-10-12 14:30:24 +02:00
parent b8d68b6f65
commit c49de14c9d
14 changed files with 1304 additions and 0 deletions

View File

@@ -2091,6 +2091,18 @@ void QtcProcessPrivate::storeEventLoopDebugInfo(const QVariant &value)
setProperty(QTC_PROCESS_BLOCKING_TYPE, value);
}
QtcProcessAdapter::QtcProcessAdapter()
{
connect(task(), &QtcProcess::done, this, [this] {
emit done(task()->result() == ProcessResult::FinishedWithSuccess);
});
}
void QtcProcessAdapter::start()
{
task()->start();
}
} // namespace Utils
#include "qtcprocess.moc"