(#467) Implemented drag & drop for moving curves between tracks

This commit is contained in:
Pål Hagen
2015-10-19 12:07:17 +02:00
parent 3a01fe0782
commit 1c3e9d8751
6 changed files with 138 additions and 10 deletions

View File

@@ -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);
}
}
//--------------------------------------------------------------------------------------------------
///

View File

@@ -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();