summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-05-03 16:00:22 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-05-04 05:52:16 +0000
commit470c95c94be58905bc3202d3b58175add5f576fa (patch)
tree992c0eea5e7e88f4599a533d2bcbf4bfac472cd9 /src/plugins/python/pythonutils.cpp
parente5051bbfdef896ece974a949a392de7337284bf0 (diff)
downloadqt-creator-470c95c94be58905bc3202d3b58175add5f576fa.tar.gz
Utils: Rename QtcProcess -> Process
Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index 1f89eef5b5..328ada95d9 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -116,13 +116,13 @@ void openPythonRepl(QObject *parent, const FilePath &file, ReplType type)
};
const auto args = QStringList{"-i"} + replImportArgs(file, type);
- auto process = new QtcProcess(parent);
+ auto process = new Process(parent);
process->setTerminalMode(TerminalMode::On);
const FilePath pythonCommand = detectPython(file);
process->setCommand({pythonCommand, args});
process->setWorkingDirectory(workingDir(file));
const QString commandLine = process->commandLine().toUserOutput();
- QObject::connect(process, &QtcProcess::done, process, [process, commandLine] {
+ QObject::connect(process, &Process::done, process, [process, commandLine] {
if (process->error() != QProcess::UnknownError) {
Core::MessageManager::writeDisrupting(Tr::tr(
(process->error() == QProcess::FailedToStart)
@@ -142,7 +142,7 @@ QString pythonName(const FilePath &pythonPath)
return {};
QString name = nameForPython.value(pythonPath);
if (name.isEmpty()) {
- QtcProcess pythonProcess;
+ Process pythonProcess;
pythonProcess.setTimeoutS(2);
pythonProcess.setCommand({pythonPath, {"--version"}});
pythonProcess.runBlocking();
@@ -174,10 +174,10 @@ void createVenv(const Utils::FilePath &python,
const CommandLine command(python, QStringList{"-m", "venv", venvPath.toUserOutput()});
- auto process = new QtcProcess;
+ auto process = new Process;
auto progress = new Core::ProcessProgress(process);
progress->setDisplayName(Tr::tr("Create Python venv"));
- QObject::connect(process, &QtcProcess::done, [process, callback](){
+ QObject::connect(process, &Process::done, [process, callback](){
callback(process->result() == ProcessResult::FinishedWithSuccess);
process->deleteLater();
});