(#396) Using the curve's checkbox to attach the curve to or detach the curve from the plot

This commit is contained in:
Pål Hagen 2015-08-31 09:50:40 +02:00
parent 5635df8dd4
commit 94f172369e

View File

@ -56,6 +56,19 @@ RimWellLogPlotCurve::~RimWellLogPlotCurve()
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
if (changedField == &show)
{
if (newValue == true)
{
m_plotCurve->attach(m_plot);
}
else
{
m_plotCurve->detach();
}
m_plot->replot();
}
}
//--------------------------------------------------------------------------------------------------