(#396) Using the checkbox of the plot trace to toggle the visibility of the trace in the plot

This commit is contained in:
Pål Hagen
2015-08-31 09:57:13 +02:00
parent 94f172369e
commit d0b6e5466f

View File

@@ -60,6 +60,10 @@ RimWellLogPlotTrace::~RimWellLogPlotTrace()
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotTrace::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
{
if (changedField == &show)
{
m_viewer->setVisible(newValue == true);
}
}
//--------------------------------------------------------------------------------------------------