forked from qt-creator/qt-creator
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:
@@ -113,13 +113,13 @@ void openPythonRepl(const FilePath &file, ReplType type)
|
||||
process->setWorkingDirectory(workingDir(file));
|
||||
const QString commandLine = process->command().toUserOutput();
|
||||
QObject::connect(process,
|
||||
&ConsoleProcess::processError,
|
||||
&ConsoleProcess::errorOccurred,
|
||||
process,
|
||||
[process, commandLine](const QString &errorString) {
|
||||
[process, commandLine] {
|
||||
Core::MessageManager::writeDisrupting(
|
||||
QCoreApplication::translate("Python",
|
||||
"Failed to run Python (%1): \"%2\".")
|
||||
.arg(commandLine, errorString));
|
||||
.arg(commandLine, process->errorString()));
|
||||
process->deleteLater();
|
||||
});
|
||||
QObject::connect(process, &ConsoleProcess::stubStopped, process, &QObject::deleteLater);
|
||||
|
||||
Reference in New Issue
Block a user