mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#499) Added a custom track delete feature
Added infrastructure needed to delete track from plot and plot collection
This commit is contained in:
@@ -175,6 +175,18 @@ void RimWellLogPlot::addTrack(RimWellLogPlotTrack* track)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlot::removeTrack(RimWellLogPlotTrack* track)
|
||||
{
|
||||
if (track)
|
||||
{
|
||||
m_viewer->removeTrackPlot(track->viewer());
|
||||
tracks.removeChildObject(track);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -457,3 +469,4 @@ QString RimWellLogPlot::depthPlotTitle() const
|
||||
depthTitle += " [m]";
|
||||
return depthTitle;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user