Make cloning of BuildConfigurations work again

Task-number: QTCREATORBUG-2207
This commit is contained in:
Tobias Hunger
2010-08-30 12:25:27 +02:00
parent d7fb215e2e
commit bfad59df64
3 changed files with 3 additions and 2 deletions

View File

@@ -196,6 +196,7 @@ void BuildConfiguration::cloneSteps(BuildConfiguration *source)
m_stepLists.clear(); m_stepLists.clear();
foreach (BuildStepList *bsl, source->m_stepLists) { foreach (BuildStepList *bsl, source->m_stepLists) {
BuildStepList *newBsl = new BuildStepList(this, bsl); BuildStepList *newBsl = new BuildStepList(this, bsl);
newBsl->cloneSteps(bsl);
m_stepLists.append(newBsl); m_stepLists.append(newBsl);
} }
} }

View File

@@ -65,6 +65,7 @@ public:
Target *target() const; Target *target() const;
virtual QVariantMap toMap() const; virtual QVariantMap toMap() const;
void cloneSteps(BuildStepList *source);
signals: signals:
void stepInserted(int position); void stepInserted(int position);
@@ -73,8 +74,6 @@ signals:
void stepMoved(int from, int to); void stepMoved(int from, int to);
protected: protected:
void cloneSteps(BuildStepList *source);
virtual bool fromMap(const QVariantMap &map); virtual bool fromMap(const QVariantMap &map);
private: private:

View File

@@ -129,6 +129,7 @@ void DeployConfiguration::cloneSteps(DeployConfiguration *source)
return; return;
delete m_stepList; delete m_stepList;
m_stepList = new BuildStepList(this, source->stepList()); m_stepList = new BuildStepList(this, source->stepList());
m_stepList->cloneSteps(source->stepList());
} }
/// ///