Introduce ProcessProgress

This is extracted separate object out of VcsCommand.
It's responsible for showing progress of the running
process. It's able to cancel the running process
automatically after pressing a small 'x' indicator on
progress panel. In this case the QtcProcess::stop()
method is being called.

Change-Id: I9fa94fd047638f76909356ae4023852349be3a06
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2022-10-07 14:59:41 +02:00
parent 907c36217d
commit 07ca7f7b99
6 changed files with 177 additions and 0 deletions

View File

@@ -1750,6 +1750,11 @@ void QtcProcess::setTimeoutS(int timeoutS)
d->m_maxHangTimerCount = INT_MAX / 1000;
}
int QtcProcess::timeoutS() const
{
return d->m_maxHangTimerCount;
}
void QtcProcess::setCodec(QTextCodec *c)
{
QTC_ASSERT(c, return);