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