forked from qt-creator/qt-creator
ProjectExplorer: Implement RunConfiguration::do{Clone,Restore} in base
It's possible now. Change-Id: I49ed73312aea1627a9543890431e2e379e3fb3ec Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -258,11 +258,6 @@ bool CMakeRunConfigurationFactory::canCreate(Target *parent, Core::Id id) const
|
||||
return project->hasBuildTarget(buildTargetFromId(id));
|
||||
}
|
||||
|
||||
RunConfiguration *CMakeRunConfigurationFactory::doCreate(Target *parent, Core::Id id)
|
||||
{
|
||||
return createHelper<CMakeRunConfiguration>(parent, id);
|
||||
}
|
||||
|
||||
bool CMakeRunConfigurationFactory::canClone(Target *parent, RunConfiguration *source) const
|
||||
{
|
||||
if (!canHandle(parent))
|
||||
@@ -277,12 +272,6 @@ bool CMakeRunConfigurationFactory::canRestore(Target *parent, const QVariantMap
|
||||
return idFromMap(map).name().startsWith(CMAKE_RC_PREFIX);
|
||||
}
|
||||
|
||||
RunConfiguration *CMakeRunConfigurationFactory::doRestore(Target *parent, const QVariantMap &map)
|
||||
{
|
||||
const Core::Id id = idFromMap(map);
|
||||
return createHelper<CMakeRunConfiguration>(parent, id);
|
||||
}
|
||||
|
||||
QString CMakeRunConfigurationFactory::buildTargetFromId(Core::Id id)
|
||||
{
|
||||
return id.suffixAfter(CMAKE_RC_PREFIX);
|
||||
|
||||
Reference in New Issue
Block a user