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:
@@ -43,6 +43,7 @@ namespace Nim {
|
||||
NimToolChainFactory::NimToolChainFactory()
|
||||
{
|
||||
setDisplayName(tr("Nim"));
|
||||
setSupportedToolChainType(Constants::C_NIMTOOLCHAIN_TYPEID);
|
||||
}
|
||||
|
||||
bool NimToolChainFactory::canCreate()
|
||||
@@ -59,11 +60,6 @@ ToolChain *NimToolChainFactory::create(Core::Id l)
|
||||
return result;
|
||||
}
|
||||
|
||||
bool NimToolChainFactory::canRestore(const QVariantMap &data)
|
||||
{
|
||||
return typeIdFromMap(data) == Constants::C_NIMTOOLCHAIN_TYPEID;
|
||||
}
|
||||
|
||||
ToolChain *NimToolChainFactory::restore(const QVariantMap &data)
|
||||
{
|
||||
auto tc = new NimToolChain(ToolChain::AutoDetection);
|
||||
|
||||
Reference in New Issue
Block a user