ProjectExplorer: Added support for registering custom languages

Change-Id: I728a2ed1ef7d9f44d7c2b59d27d6e23444cd3bb5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Filippo Cucchetto
2016-12-16 00:43:14 +01:00
parent 35690ab66e
commit 4b1f8f3609
63 changed files with 422 additions and 341 deletions

View File

@@ -85,9 +85,9 @@ CustomToolChain::CustomToolChain(Detection d) :
m_outputParser(Gcc)
{ }
CustomToolChain::CustomToolChain(Language l, Detection d) : CustomToolChain(d)
CustomToolChain::CustomToolChain(Core::Id language, Detection d) : CustomToolChain(d)
{
setLanguage(l);
setLanguage(language);
}
@@ -423,9 +423,9 @@ CustomToolChainFactory::CustomToolChainFactory()
setDisplayName(tr("Custom"));
}
QSet<ToolChain::Language> CustomToolChainFactory::supportedLanguages() const
QSet<Core::Id> CustomToolChainFactory::supportedLanguages() const
{
return ToolChain::allLanguages();
return ToolChainManager::allLanguages();
}
bool CustomToolChainFactory::canCreate()
@@ -433,9 +433,9 @@ bool CustomToolChainFactory::canCreate()
return true;
}
ToolChain *CustomToolChainFactory::create(ToolChain::Language l)
ToolChain *CustomToolChainFactory::create(Core::Id language)
{
return new CustomToolChain(l, ToolChain::ManualDetection);
return new CustomToolChain(language, ToolChain::ManualDetection);
}
// Used by the ToolChainManager to restore user-generated tool chains