ConsoleProcess: Uniform the common interface of QtcProcess

This is a preliminary step before merging ConsoleProcess
into QtcProcess.

Remove processError() signal, use errorOccurred() instead.

Change-Id: If11064944228c82a9099fffdba942c4276690085
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Jarek Kobus
2022-01-19 14:02:20 +01:00
parent e695109078
commit 70b2b2a1d5
6 changed files with 11 additions and 13 deletions

View File

@@ -174,7 +174,7 @@ TerminalRunner::TerminalRunner(RunControl *runControl,
{
setId("TerminalRunner");
connect(&m_stubProc, &ConsoleProcess::processError,
connect(&m_stubProc, &ConsoleProcess::errorOccurred,
this, &TerminalRunner::stubError);
connect(&m_stubProc, &ConsoleProcess::started,
this, &TerminalRunner::stubStarted);
@@ -235,9 +235,9 @@ void TerminalRunner::stubStarted()
reportStarted();
}
void TerminalRunner::stubError(const QString &msg)
void TerminalRunner::stubError()
{
reportFailure(msg);
reportFailure(m_stubProc.errorString());
}
} // namespace Internal