summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-01-19 14:02:20 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-01-20 07:51:04 +0000
commit70b2b2a1d52e55f1adf15d52147305186388faea (patch)
tree9447471fe03dfdbb6b1f97ca3371cb913718fa1d /src/plugins/python/pythonutils.cpp
parente6951090780275294716ad7ea3ecc5cb792571bf (diff)
downloadqt-creator-70b2b2a1d52e55f1adf15d52147305186388faea.tar.gz
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>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index 74294263a9..d13a233750 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -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);