diff options
author | hjk <hjk@qt.io> | 2019-05-10 18:22:58 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-05-13 14:55:15 +0000 |
commit | b997214abbb352df2392ed8e6377cfefdbb8dce2 (patch) | |
tree | 06b7d13f15655bd45cc01d077177526f2c3b687d /src/plugins/nim | |
parent | 086eb4d598dffc65ce78297c718e2383aa2fbf38 (diff) |
ProjectExplorer: Use a member for ToolChainFactory::canCreate
... in all but one case (ClangCL, which is special).
Change-Id: I6429f2f37b18524c29b6be78801ea0e5517cad4c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r-- | src/plugins/nim/project/nimtoolchainfactory.cpp | 6 | ||||
-rw-r--r-- | src/plugins/nim/project/nimtoolchainfactory.h | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/nim/project/nimtoolchainfactory.cpp b/src/plugins/nim/project/nimtoolchainfactory.cpp index b59f83303b7..953ad569b14 100644 --- a/src/plugins/nim/project/nimtoolchainfactory.cpp +++ b/src/plugins/nim/project/nimtoolchainfactory.cpp @@ -46,11 +46,7 @@ NimToolChainFactory::NimToolChainFactory() setSupportedToolChainType(Constants::C_NIMTOOLCHAIN_TYPEID); setSupportedLanguages({Constants::C_NIMLANGUAGE_ID}); setToolchainConstructor([] { return new NimToolChain; }); -} - -bool NimToolChainFactory::canCreate() -{ - return true; + setUserCreatable(true); } QList<ToolChain *> NimToolChainFactory::autoDetect(const QList<ToolChain *> &alreadyKnown) diff --git a/src/plugins/nim/project/nimtoolchainfactory.h b/src/plugins/nim/project/nimtoolchainfactory.h index ab7a8584ec1..ed40bfeb624 100644 --- a/src/plugins/nim/project/nimtoolchainfactory.h +++ b/src/plugins/nim/project/nimtoolchainfactory.h @@ -41,8 +41,6 @@ class NimToolChainFactory : public ProjectExplorer::ToolChainFactory public: NimToolChainFactory(); - bool canCreate() final; - QList<ProjectExplorer::ToolChain *> autoDetect(const QList<ProjectExplorer::ToolChain *> &alreadyKnown) final; QList<ProjectExplorer::ToolChain *> autoDetect(const Utils::FileName &compilerPath, const Core::Id &language) final; }; |