diff options
| author | hjk <[email protected]> | 2025-06-26 14:37:06 +0200 |
|---|---|---|
| committer | hjk <[email protected]> | 2025-07-11 09:16:43 +0000 |
| commit | 40acc5fcfebc7d5dd6cd922be143b6e951b38860 (patch) | |
| tree | 9b66570c3dadf14f475d1dc1b5aaafdaa5186db1 /src/plugins/python/pythonbuildsystem.h | |
| parent | eda3f34965c0a7c49c0ff2d8d282fe6a5c3ee08c (diff) | |
ProjectExplorer: Better separation between project managers and QmlJS
Previously, individual project managers depended on QmlJS, and
for updates they pulled a pre-filled ProjectInfo struct from
QmlJS, amended it, and pushed it back.
In the new approach, indvidual project managers can add to a similar
pre-filled structure from the buildsystem base implementation, after
which the base implementation emits a signal containing the data,
which is caught by QmlJSTool::ModelManager and there translated into
QmlJS's own ProjectInfo struct.
Advantage here is that the more of the necessary amending can
be done centrally in the new BuildSystem::updateQmlCodeModel()
and the indvidual project managers do not have to depend on
QmlJS anymore.
Change-Id: Ic3fbc55b9e3d980c55ac478bdf5672391214fa7b
Reviewed-by: Christian Kandeler <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/plugins/python/pythonbuildsystem.h')
| -rw-r--r-- | src/plugins/python/pythonbuildsystem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonbuildsystem.h b/src/plugins/python/pythonbuildsystem.h index 76874b91171..efaa2dd40cb 100644 --- a/src/plugins/python/pythonbuildsystem.h +++ b/src/plugins/python/pythonbuildsystem.h @@ -42,9 +42,10 @@ private: }; QList<FileEntry> processEntries(const QStringList &paths) const; + void updateQmlCodeModelInfo(ProjectExplorer::QmlCodeModelInfo &projectInfo) final; + QList<FileEntry> m_files; QList<FileEntry> m_qmlImportPaths; }; - } // namespace Python::Internal |
