diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-01-04 11:25:23 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-01-11 15:22:56 +0000 |
commit | c99ce1f455189864de9a2043730f704d7b024abf (patch) | |
tree | 9b1e450ed7478f0760637ec101efc7696bb188d8 /src/plugins/python/pythonlanguageclient.cpp | |
parent | c79419402790ecb1a0b27a77740b416c8ce6ac5e (diff) | |
download | qt-creator-c99ce1f455189864de9a2043730f704d7b024abf.tar.gz |
ExtraCompiler: Expose TaskItem for compile task
This is an intermediate state before employing one common TaskTree
inside CppProjectUpdater. Use multiple one-task TaskTrees for now.
Refactor ExtraCompiler so that there is only one pure virtual method
to be implemented (taskItem()) instead of two (2 run() overloads).
Use TaskTree inside ExtraCompiler for running the compilation process.
Change-Id: I6884934508e043594589d117f6d3f0aed94b84c2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 33181d4516..3e36c27e78 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -249,7 +249,7 @@ void PyLSClient::updateExtraCompilers(ProjectExplorer::Project *project, updateExtraCompilerContents(extraCompiler, file); }); if (extraCompiler->isDirty()) - static_cast<ExtraCompiler *>(extraCompiler)->run(); + extraCompiler->compileFile(); } else { m_extraCompilers[project] << oldCompilers.takeAt(index); } |