diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-01-20 17:36:28 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-01-20 16:42:50 +0000 |
commit | c0003c908d24e4494c1fb54c77417e5897e125ee (patch) | |
tree | 8258576019fe3ba4de00bc843a7e7148d60fa167 /src/plugins/python/pythonutils.cpp | |
parent | c4054b5d1c5f11a2551daf3c0d8420e93f4d1d1d (diff) | |
download | qt-creator-c0003c908d24e4494c1fb54c77417e5897e125ee.tar.gz |
ConsoleProcess: Uniform the common interface of QtcProcess
This is a preliminary step before merging ConsoleProcess
into QtcProcess.
Rename command() to commandLine().
Return const references from commandLine() and from environment().
Change-Id: Iacbf48030d00f8dbba053ece70bd460924f96041
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r-- | src/plugins/python/pythonutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index 17304271a8..89e897b350 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -111,7 +111,7 @@ void openPythonRepl(QObject *parent, const FilePath &file, ReplType type) const FilePath pythonCommand = detectPython(file); process->setCommand({pythonCommand, args}); process->setWorkingDirectory(workingDir(file)); - const QString commandLine = process->command().toUserOutput(); + const QString commandLine = process->commandLine().toUserOutput(); QObject::connect(process, &ConsoleProcess::errorOccurred, process, |