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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user