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>
This commit is contained in:
hjk
2019-05-10 18:22:58 +02:00
parent 086eb4d598
commit b997214abb
18 changed files with 21 additions and 55 deletions

View File

@@ -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)