From 381f72ab16760757ce164420fd272ccec9ce916d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 12 Mar 2025 13:36:52 +0100 Subject: ProjectExplorer: Make build system name available in Project There is a one-to-one correspondence between the types of Project and BuildSystem, so we shouldn't need access to a BuildSystem object to get at the build system name. Change-Id: Ic09c58e42e609d5db8cbf9f85bbe87d1ec3221c2 Reviewed-by: hjk --- src/plugins/nim/project/nimbleproject.cpp | 2 +- src/plugins/nim/project/nimbleproject.h | 2 +- src/plugins/nim/project/nimproject.cpp | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/plugins/nim') diff --git a/src/plugins/nim/project/nimbleproject.cpp b/src/plugins/nim/project/nimbleproject.cpp index 6cb71bc9ec3..3407d4a15e9 100644 --- a/src/plugins/nim/project/nimbleproject.cpp +++ b/src/plugins/nim/project/nimbleproject.cpp @@ -342,7 +342,7 @@ NimbleProject::NimbleProject(const FilePath &fileName) setDisplayName(fileName.completeBaseName()); // ensure debugging is enabled (Nim plugin translates nim code to C code) setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID)); - setBuildSystemCreator(); + setBuildSystemCreator("nimble"); } void NimbleProject::toMap(Store &map) const diff --git a/src/plugins/nim/project/nimbleproject.h b/src/plugins/nim/project/nimbleproject.h index 4a61306235c..b6be3f2efbd 100644 --- a/src/plugins/nim/project/nimbleproject.h +++ b/src/plugins/nim/project/nimbleproject.h @@ -51,7 +51,7 @@ private: ProjectExplorer::Node *, const Utils::FilePairs &filesToRename, Utils::FilePaths *notRenamed) override; - QString name() const final { return QLatin1String("mimble"); } + void triggerParsing() final; std::vector m_tasks; diff --git a/src/plugins/nim/project/nimproject.cpp b/src/plugins/nim/project/nimproject.cpp index 0659d5faf28..54fc7ace2d7 100644 --- a/src/plugins/nim/project/nimproject.cpp +++ b/src/plugins/nim/project/nimproject.cpp @@ -159,8 +159,6 @@ public: Node *, const Utils::FilePairs &filesToRename, Utils::FilePaths *notRenamed) final; - QString name() const final { return QLatin1String("nim"); } - void triggerParsing() final; protected: @@ -354,7 +352,7 @@ NimProject::NimProject(const FilePath &filePath) : Project(Constants::C_NIM_MIME setDisplayName(filePath.completeBaseName()); // ensure debugging is enabled (Nim plugin translates nim code to C code) setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID)); - setBuildSystemCreator(); + setBuildSystemCreator("nim"); } void NimProject::toMap(Store &map) const -- cgit v1.2.3