forked from qt-creator/qt-creator
ProjectExplorer: Rename BuildStepFactory::cloneStep{,Creator}
It clones the functor to create the step, not a step as such. Change-Id: Ie07b321e28fae888bb800a574a717251f3661a2f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -101,7 +101,7 @@ class QdbDeployStepFactory : public BuildStepFactory
|
||||
public:
|
||||
explicit QdbDeployStepFactory(Id existingStepId)
|
||||
{
|
||||
cloneStep(existingStepId);
|
||||
cloneStepCreator(existingStepId);
|
||||
setSupportedConfiguration(Constants::QdbDeployConfigurationId);
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
|
||||
}
|
||||
|
@@ -380,7 +380,7 @@ QString BuildStepFactory::displayName() const
|
||||
return m_displayName;
|
||||
}
|
||||
|
||||
void BuildStepFactory::cloneStep(Utils::Id exitstingStepId, Utils::Id overrideNewStepId)
|
||||
void BuildStepFactory::cloneStepCreator(Id exitstingStepId, Id overrideNewStepId)
|
||||
{
|
||||
m_stepId = {};
|
||||
m_creator = {};
|
||||
|
@@ -171,7 +171,7 @@ protected:
|
||||
m_stepId = id;
|
||||
m_creator = [id](BuildStepList *bsl) { return new BuildStepType(bsl, id); };
|
||||
}
|
||||
void cloneStep(Utils::Id exitstingStepId, Utils::Id overrideNewStepId = {});
|
||||
void cloneStepCreator(Utils::Id exitstingStepId, Utils::Id overrideNewStepId = {});
|
||||
|
||||
void setSupportedStepList(Utils::Id id);
|
||||
void setSupportedStepLists(const QList<Utils::Id> &ids);
|
||||
|
@@ -46,7 +46,7 @@ class QnxDeployStepFactory : public BuildStepFactory
|
||||
public:
|
||||
QnxDeployStepFactory(Utils::Id existingStepId, Utils::Id overrideId = {})
|
||||
{
|
||||
cloneStep(existingStepId, overrideId);
|
||||
cloneStepCreator(existingStepId, overrideId);
|
||||
setSupportedConfiguration(Constants::QNX_QNX_DEPLOYCONFIGURATION_ID);
|
||||
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY);
|
||||
}
|
||||
|
Reference in New Issue
Block a user