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:
@@ -73,7 +73,7 @@ signals:
|
||||
|
||||
private:
|
||||
friend class ProjectExplorer::IRunConfigurationFactory;
|
||||
void initialize(Core::Id id);
|
||||
void initialize(Core::Id id) override;
|
||||
|
||||
void deviceChanges();
|
||||
friend class IosRunConfigurationWidget;
|
||||
|
||||
@@ -111,16 +111,5 @@ QList<RunConfiguration *> IosRunConfigurationFactory::runConfigurationsForNode(T
|
||||
return result;
|
||||
}
|
||||
|
||||
RunConfiguration *IosRunConfigurationFactory::doCreate(Target *parent, Core::Id id)
|
||||
{
|
||||
return createHelper<IosRunConfiguration>(parent, id);
|
||||
}
|
||||
|
||||
RunConfiguration *IosRunConfigurationFactory::doRestore(Target *parent, const QVariantMap &map)
|
||||
{
|
||||
Core::Id id = ProjectExplorer::idFromMap(map);
|
||||
return createHelper<IosRunConfiguration>(parent, id);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Ios
|
||||
|
||||
@@ -57,11 +57,6 @@ public:
|
||||
QList<ProjectExplorer::RunConfiguration *> runConfigurationsForNode(ProjectExplorer::Target *t,
|
||||
const ProjectExplorer::Node *n
|
||||
) override;
|
||||
private:
|
||||
ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent,
|
||||
Core::Id id) override;
|
||||
ProjectExplorer::RunConfiguration *doRestore(ProjectExplorer::Target *parent,
|
||||
const QVariantMap &map) override;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user