Allow the pipeline flow chart control to change stages dynamically

This commit is contained in:
baldurk
2023-08-25 14:29:03 +01:00
parent aec25cfcaa
commit 8b4f04c58f
+3
View File
@@ -41,7 +41,9 @@ void PipelineFlowChart::setStages(const QStringList &abbrevs, const QStringList
m_StageNames = names;
m_StageAbbrevs = abbrevs;
m_StageFlows.reserve(m_StageNames.count());
m_StageFlows.clear();
m_StagesEnabled.reserve(m_StageNames.count());
m_StagesEnabled.clear();
for(int i = 0; i < m_StageNames.count(); i++)
{
m_StageFlows.push_back(true);
@@ -49,6 +51,7 @@ void PipelineFlowChart::setStages(const QStringList &abbrevs, const QStringList
}
update();
setSelectedStage(selectedStage());
}
void PipelineFlowChart::setStageName(int index, const QString &abbrev, const QString &name)