ToolChain: Get rid of type() in favor of typeId()

Change-Id: I8fc68c266acb55a7c3e014697a7b526784914f7a
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-07-07 15:24:27 +02:00
parent 3b364f70e8
commit e6d1141e1e
20 changed files with 18 additions and 71 deletions

View File

@@ -133,13 +133,13 @@ static QStringList targetOSList(const ProjectExplorer::Abi &abi, const ProjectEx
static QStringList toolchainList(const ProjectExplorer::ToolChain *tc)
{
QStringList list;
if (tc->type() == QLatin1String("clang"))
if (tc->typeId() == ProjectExplorer::Constants::CLANG_TOOLCHAIN_ID)
list << QLatin1String("clang") << QLatin1String("llvm") << QLatin1String("gcc");
else if (tc->type() == QLatin1String("gcc"))
else if (tc->typeId() == ProjectExplorer::Constants::GCC_TOOLCHAIN_ID)
list << QLatin1String("gcc"); // TODO: Detect llvm-gcc
else if (tc->type() == QLatin1String("mingw"))
else if (tc->typeId() == ProjectExplorer::Constants::MINGW_TOOLCHAIN_ID)
list << QLatin1String("mingw") << QLatin1String("gcc");
else if (tc->type() == QLatin1String("msvc"))
else if (tc->typeId() == ProjectExplorer::Constants::MSVC_TOOLCHAIN_ID)
list << QLatin1String("msvc");
return list;
}