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

@@ -438,9 +438,9 @@ QList<ToolChain *> ToolChainFactory::autoDetect(const Utils::FileName &compilerP
return QList<ToolChain *>();
}
bool ToolChainFactory::canCreate()
bool ToolChainFactory::canCreate() const
{
return false;
return m_userCreatable;
}
ToolChain *ToolChainFactory::create()
@@ -517,4 +517,9 @@ void ToolChainFactory::setToolchainConstructor
m_toolchainConstructor = toolchainContructor;
}
void ToolChainFactory::setUserCreatable(bool userCreatable)
{
m_userCreatable = userCreatable;
}
} // namespace ProjectExplorer