forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user