mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Highlight the curve belonging to the legend you click on. (#9259)
* Highlight the curve belonging to the legend you click on. * Make sure legend curve order remains the same when changing hilited curve
This commit is contained in:
@@ -2456,6 +2456,8 @@ RiuPlotWidget* RimSummaryPlot::doCreatePlotViewWidget( QWidget* mainWindowParent
|
||||
m_summaryPlot = std::make_unique<RiuSummaryQwtPlot>( this, mainWindowParent );
|
||||
#endif
|
||||
|
||||
QObject::connect( plotWidget(), SIGNAL( curveOrderNeedsUpdate() ), this, SLOT( updateCurveOrder() ) );
|
||||
|
||||
for ( const auto& axisProperties : m_axisProperties )
|
||||
{
|
||||
plotWidget()->ensureAxisIsCreated( axisProperties->plotAxisType() );
|
||||
@@ -3015,3 +3017,11 @@ RimSummaryPlotSourceStepping* RimSummaryPlot::sourceStepper()
|
||||
{
|
||||
return m_sourceStepping();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::updateCurveOrder()
|
||||
{
|
||||
m_summaryCurveCollection->refreshCurveOrdering();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user