ProjectExplorer: Replace ToolChainFactory::canRestore

... by a member-based check.

Change-Id: Id7d19e488695e76ea17cf2d02c7b6eb2cd0246cc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-05-08 14:56:26 +02:00
parent e919a9f545
commit 78fd99f5d3
21 changed files with 36 additions and 99 deletions

View File

@@ -449,11 +449,6 @@ ToolChain *ToolChainFactory::create(Core::Id l)
return nullptr;
}
bool ToolChainFactory::canRestore(const QVariantMap &)
{
return false;
}
ToolChain *ToolChainFactory::restore(const QVariantMap &)
{
return nullptr;
@@ -482,4 +477,14 @@ void ToolChainFactory::autoDetectionToMap(QVariantMap &data, bool detected)
data.insert(QLatin1String(AUTODETECT_KEY), detected);
}
Core::Id ToolChainFactory::supportedToolChainType() const
{
return m_supportedToolChainType;
}
void ToolChainFactory::setSupportedToolChainType(const Core::Id &supportedToolChain)
{
m_supportedToolChainType = supportedToolChain;
}
} // namespace ProjectExplorer