mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #8765 from OPM/summarymultiplot_performance2
Summary Multiplot performance improvements and fixes
This commit is contained in:
@@ -55,7 +55,6 @@ void RimSummaryMultiPlotCollection::initAfterRead()
|
||||
for ( auto& plot : m_summaryMultiPlots )
|
||||
{
|
||||
plot->duplicatePlot.connect( this, &RimSummaryMultiPlotCollection::onDuplicatePlot );
|
||||
plot->refreshTree.connect( this, &RimSummaryMultiPlotCollection::onRefreshTree );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +81,6 @@ void RimSummaryMultiPlotCollection::addSummaryMultiPlot( RimSummaryMultiPlot* pl
|
||||
{
|
||||
m_summaryMultiPlots().push_back( plot );
|
||||
plot->duplicatePlot.connect( this, &RimSummaryMultiPlotCollection::onDuplicatePlot );
|
||||
plot->refreshTree.connect( this, &RimSummaryMultiPlotCollection::onRefreshTree );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -141,14 +139,7 @@ void RimSummaryMultiPlotCollection::defineUiTreeOrdering( caf::PdmUiTreeOrdering
|
||||
{
|
||||
for ( auto& plot : m_summaryMultiPlots() )
|
||||
{
|
||||
if ( plot->summaryPlots().size() == 1 )
|
||||
{
|
||||
uiTreeOrdering.add( plot->summaryPlots()[0] );
|
||||
}
|
||||
else
|
||||
{
|
||||
uiTreeOrdering.add( plot );
|
||||
}
|
||||
uiTreeOrdering.add( plot );
|
||||
}
|
||||
uiTreeOrdering.skipRemainingChildren( true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user