mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2658 Curve creator. Update curve tree view to display ensembles as well
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "RicSummaryCurveCreatorSplitterUi.h"
|
||||
|
||||
#include "RicSummaryCurveCreator.h"
|
||||
#include "RimEnsembleCurveSetCollection.h"
|
||||
#include "RimSummaryCurveCollection.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
@@ -194,8 +195,11 @@ QWidget* RicSummaryCurveCreatorSplitterUi::getOrCreateCurveTreeWidget()
|
||||
|
||||
if (m_summaryCurveCreator)
|
||||
{
|
||||
RimSummaryCurveCollection* sumColl = m_summaryCurveCreator->previewPlot()->summaryCurveCollection();
|
||||
m_curveTreeView->setPdmItem(sumColl);
|
||||
RimSummaryPlot* previewPlot = m_summaryCurveCreator->previewPlot();
|
||||
m_curveTreeView->setPdmItem(previewPlot);
|
||||
m_curveTreeView->setUiConfigurationName(RicSummaryCurveCreator::CONFIGURATION_NAME);
|
||||
m_curveTreeView->setExpanded(previewPlot->summaryCurveCollection(), true);
|
||||
m_curveTreeView->setExpanded(previewPlot->ensembleCurveSetCollection(), true);
|
||||
}
|
||||
|
||||
return m_curvesPanel;
|
||||
|
||||
Reference in New Issue
Block a user