mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#467) Implemented drag & drop for moving tracks between plots
This commit is contained in:
@@ -170,11 +170,16 @@ caf::PdmFieldHandle* RimWellLogPlot::objectToggleField()
|
||||
void RimWellLogPlot::addTrack(RimWellLogPlotTrack* track)
|
||||
{
|
||||
tracks.push_back(track);
|
||||
if(m_viewer)
|
||||
if (m_viewer)
|
||||
{
|
||||
track->recreateViewer();
|
||||
m_viewer->insertTrackPlot(track->viewer());
|
||||
}
|
||||
|
||||
for (size_t tIdx = 0; tIdx < tracks.size(); tIdx++)
|
||||
{
|
||||
tracks[tIdx]->setDescription(QString("Track %1").arg(tIdx + 1));
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user