mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename in RiuDragDrop
This commit is contained in:
parent
469c7fa09a
commit
1dc03c87fa
@ -223,11 +223,11 @@ bool RiuDragDrop::dropMimeData(const QMimeData *data, Qt::DropAction action, int
|
|||||||
caf::PdmObjectHandle* objHandle = dynamic_cast<caf::PdmObjectHandle*>(dropTarget);
|
caf::PdmObjectHandle* objHandle = dynamic_cast<caf::PdmObjectHandle*>(dropTarget);
|
||||||
if (objHandle)
|
if (objHandle)
|
||||||
{
|
{
|
||||||
caf::PdmObjectGroup objectGroup;
|
caf::PdmObjectGroup draggedObjects;
|
||||||
const MimeDataWithIndexes* myMimeData = qobject_cast<const MimeDataWithIndexes*>(data);
|
const MimeDataWithIndexes* myMimeData = qobject_cast<const MimeDataWithIndexes*>(data);
|
||||||
if (myMimeData && parent.isValid())
|
if (myMimeData && parent.isValid())
|
||||||
{
|
{
|
||||||
objectGroupFromModelIndexes(&objectGroup, myMimeData->indexes());
|
objectGroupFromModelIndexes(&draggedObjects, myMimeData->indexes());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -238,28 +238,28 @@ bool RiuDragDrop::dropMimeData(const QMimeData *data, Qt::DropAction action, int
|
|||||||
objHandle->firstAnchestorOrThisOfType(gridCaseGroup);
|
objHandle->firstAnchestorOrThisOfType(gridCaseGroup);
|
||||||
if (gridCaseGroup)
|
if (gridCaseGroup)
|
||||||
{
|
{
|
||||||
return handleGridCaseGroupDrop(action, objectGroup, gridCaseGroup);
|
return handleGridCaseGroupDrop(action, draggedObjects, gridCaseGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
RimWellLogPlotCurve* wellLogPlotCurve;
|
RimWellLogPlotCurve* wellLogPlotCurve;
|
||||||
objHandle->firstAnchestorOrThisOfType(wellLogPlotCurve);
|
objHandle->firstAnchestorOrThisOfType(wellLogPlotCurve);
|
||||||
if (wellLogPlotCurve)
|
if (wellLogPlotCurve)
|
||||||
{
|
{
|
||||||
return handleWellLogPlotCurveDrop(action, objectGroup, wellLogPlotCurve);
|
return handleWellLogPlotCurveDrop(action, draggedObjects, wellLogPlotCurve);
|
||||||
}
|
}
|
||||||
|
|
||||||
RimWellLogPlotTrack* wellLogPlotTrack;
|
RimWellLogPlotTrack* wellLogPlotTrack;
|
||||||
objHandle->firstAnchestorOrThisOfType(wellLogPlotTrack);
|
objHandle->firstAnchestorOrThisOfType(wellLogPlotTrack);
|
||||||
if (wellLogPlotTrack)
|
if (wellLogPlotTrack)
|
||||||
{
|
{
|
||||||
return handleWellLogPlotTrackDrop(action, objectGroup, wellLogPlotTrack);
|
return handleWellLogPlotTrackDrop(action, draggedObjects, wellLogPlotTrack);
|
||||||
}
|
}
|
||||||
|
|
||||||
RimWellLogPlot* wellLogPlot;
|
RimWellLogPlot* wellLogPlot;
|
||||||
objHandle->firstAnchestorOrThisOfType(wellLogPlot);
|
objHandle->firstAnchestorOrThisOfType(wellLogPlot);
|
||||||
if (wellLogPlot)
|
if (wellLogPlot)
|
||||||
{
|
{
|
||||||
return handleWellLogPlotDrop(action, objectGroup, wellLogPlot);
|
return handleWellLogPlotDrop(action, draggedObjects, wellLogPlot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user