forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user