mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Using the curve's checkbox to attach the curve to or detach the curve from the plot
This commit is contained in:
parent
5635df8dd4
commit
94f172369e
@ -56,6 +56,19 @@ RimWellLogPlotCurve::~RimWellLogPlotCurve()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimWellLogPlotCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user