aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customtoolchain.cpp
diff options
context:
space:
mode:
authorFilippo Cucchetto <filippocucchetto@gmail.com>2016-12-16 00:43:14 +0100
committerFilippo Cucchetto <filippocucchetto@gmail.com>2017-01-23 11:19:11 +0000
commit4b1f8f360946d47fd1f8165f5e194805d3536810 (patch)
tree192a53b20b938ce08614df25a9f554941e93ae80 /src/plugins/projectexplorer/customtoolchain.cpp
parent35690ab66e3c79bf2ff69a2b996da0c2584ee13b (diff)
ProjectExplorer: Added support for registering custom languages
Change-Id: I728a2ed1ef7d9f44d7c2b59d27d6e23444cd3bb5 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index 3423ce69e8..3e86571f8f 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -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