forked from qt-creator/qt-creator
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user