mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#467) Implemented drag & drop for moving curves between tracks
This commit is contained in:
@@ -118,6 +118,19 @@ void RimWellLogPlotTrack::addCurve(RimWellLogPlotCurve* curve)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlotTrack::removeCurve(RimWellLogPlotCurve* curve)
|
||||
{
|
||||
size_t index = curves.index(curve);
|
||||
if (index >= 0 && index < curves.size())
|
||||
{
|
||||
curves[index]->detachCurve();
|
||||
curves.removeChildObject(curve);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
void setDescription(const QString& description);
|
||||
|
||||
void addCurve(RimWellLogPlotCurve* curve);
|
||||
void removeCurve(RimWellLogPlotCurve* curve);
|
||||
size_t curveCount() { return curves.size(); }
|
||||
|
||||
void recreateViewer();
|
||||
|
||||
Reference in New Issue
Block a user