summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-02-10 19:25:03 +0100
committerhjk <hjk@qt.io>2022-02-11 17:33:48 +0000
commite2cb64471a59133d2b073b9d14bb0f270a27260b (patch)
tree8b8b859c6f192136bbca3c4ccba4046a840c3de9 /src/plugins/python/pythonutils.cpp
parent825c89987c88e606dc2dbf5d1c166ac78153d230 (diff)
downloadqt-creator-e2cb64471a59133d2b073b9d14bb0f270a27260b.tar.gz
Utils: Move QtcProcess constructor setup data to shared setup data
This includes replacing DeviceProcess terminal handling with base member. Change-Id: Id1541bfce33c71dddc71b4816ad0b174dce3879c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index 8902ec48ed..81ff8b4be4 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -107,7 +107,8 @@ void openPythonRepl(QObject *parent, const FilePath &file, ReplType type)
};
const auto args = QStringList{"-i"} + replImportArgs(file, type);
- auto process = new QtcProcess(QtcProcess::TerminalOn, parent);
+ auto process = new QtcProcess(parent);
+ process->setTerminalMode(QtcProcess::TerminalOn);
const FilePath pythonCommand = detectPython(file);
process->setCommand({pythonCommand, args});
process->setWorkingDirectory(workingDir(file));