forked from qt-creator/qt-creator
ProjectExplorer: Replace ToolChainFactory::supportedLanguange
... by a member-based approach. Change-Id: I5c7fef196df6c37fd26c60a58c774426eca562a0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -44,6 +44,7 @@ NimToolChainFactory::NimToolChainFactory()
|
||||
{
|
||||
setDisplayName(tr("Nim"));
|
||||
setSupportedToolChainType(Constants::C_NIMTOOLCHAIN_TYPEID);
|
||||
setSupportedLanguages({Constants::C_NIMLANGUAGE_ID});
|
||||
}
|
||||
|
||||
bool NimToolChainFactory::canCreate()
|
||||
@@ -69,11 +70,6 @@ ToolChain *NimToolChainFactory::restore(const QVariantMap &data)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QSet<Core::Id> NimToolChainFactory::supportedLanguages() const
|
||||
{
|
||||
return {Constants::C_NIMLANGUAGE_ID};
|
||||
}
|
||||
|
||||
QList<ToolChain *> NimToolChainFactory::autoDetect(const QList<ToolChain *> &alreadyKnown)
|
||||
{
|
||||
QList<ToolChain *> result;
|
||||
|
||||
Reference in New Issue
Block a user