#6285 Add context menu stacking/unstacking of curves

This commit is contained in:
Gaute Lindkvist
2020-08-10 19:59:13 +02:00
parent c3982a5782
commit e0cf133721
9 changed files with 387 additions and 2 deletions

View File

@@ -740,6 +740,22 @@ bool RimPlotCurve::isStackedWithPhaseColors() const
return m_isStackedWithPhaseColors;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimPlotCurve::setIsStacked( bool stacked )
{
m_isStacked = stacked;
if ( !m_isStacked() && m_fillStyle() != Qt::NoBrush )
{
// Switch off area fill when turning off stacking.
m_fillStyle = Qt::NoBrush;
}
stackingChanged.send( m_isStacked() );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------