mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Fixed typo of firstAncestorOrThisOfType
This commit is contained in:
@@ -235,28 +235,28 @@ bool RiuDragDrop::dropMimeData(const QMimeData *data, Qt::DropAction action, int
|
||||
}
|
||||
|
||||
RimIdenticalGridCaseGroup* gridCaseGroup;
|
||||
dropTarget->firstAnchestorOrThisOfType(gridCaseGroup);
|
||||
dropTarget->firstAncestorOrThisOfType(gridCaseGroup);
|
||||
if (gridCaseGroup)
|
||||
{
|
||||
return handleGridCaseGroupDrop(action, draggedObjects, gridCaseGroup);
|
||||
}
|
||||
|
||||
RimWellLogCurve* wellLogPlotCurve;
|
||||
dropTarget->firstAnchestorOrThisOfType(wellLogPlotCurve);
|
||||
dropTarget->firstAncestorOrThisOfType(wellLogPlotCurve);
|
||||
if (wellLogPlotCurve)
|
||||
{
|
||||
return handleWellLogPlotCurveDrop(action, draggedObjects, wellLogPlotCurve);
|
||||
}
|
||||
|
||||
RimWellLogTrack* wellLogPlotTrack;
|
||||
dropTarget->firstAnchestorOrThisOfType(wellLogPlotTrack);
|
||||
dropTarget->firstAncestorOrThisOfType(wellLogPlotTrack);
|
||||
if (wellLogPlotTrack)
|
||||
{
|
||||
return handleWellLogPlotTrackDrop(action, draggedObjects, wellLogPlotTrack);
|
||||
}
|
||||
|
||||
RimWellLogPlot* wellLogPlot;
|
||||
dropTarget->firstAnchestorOrThisOfType(wellLogPlot);
|
||||
dropTarget->firstAncestorOrThisOfType(wellLogPlot);
|
||||
if (wellLogPlot)
|
||||
{
|
||||
return handleWellLogPlotDrop(action, draggedObjects, wellLogPlot);
|
||||
@@ -361,7 +361,7 @@ bool RiuDragDrop::handleWellLogPlotTrackDrop(Qt::DropAction action, caf::PdmObje
|
||||
if (action == Qt::MoveAction)
|
||||
{
|
||||
RimWellLogPlot* wellLogPlot;
|
||||
trackTarget->firstAnchestorOrThisOfType(wellLogPlot);
|
||||
trackTarget->firstAncestorOrThisOfType(wellLogPlot);
|
||||
RicWellLogPlotTrackFeatureImpl::moveTracksToWellLogPlot(wellLogPlot, wellLogPlotTracks, trackTarget);
|
||||
return true;
|
||||
}
|
||||
@@ -381,7 +381,7 @@ bool RiuDragDrop::handleWellLogPlotCurveDrop(Qt::DropAction action, caf::PdmObje
|
||||
if (action == Qt::MoveAction)
|
||||
{
|
||||
RimWellLogTrack* wellLogPlotTrack;
|
||||
curveDropTarget->firstAnchestorOrThisOfType(wellLogPlotTrack);
|
||||
curveDropTarget->firstAncestorOrThisOfType(wellLogPlotTrack);
|
||||
|
||||
RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack(wellLogPlotTrack, wellLogPlotCurves, curveDropTarget);
|
||||
return true;
|
||||
|
||||
@@ -490,7 +490,7 @@ void RiuMainPlotWindow::selectedObjectsChanged()
|
||||
|
||||
if (!selectedWellLogPlot)
|
||||
{
|
||||
firstSelectedObject->firstAnchestorOrThisOfType(selectedWellLogPlot);
|
||||
firstSelectedObject->firstAncestorOrThisOfType(selectedWellLogPlot);
|
||||
}
|
||||
|
||||
if (selectedWellLogPlot)
|
||||
@@ -516,7 +516,7 @@ void RiuMainPlotWindow::selectedObjectsChanged()
|
||||
|
||||
if (!selectedSummaryPlot)
|
||||
{
|
||||
firstSelectedObject->firstAnchestorOrThisOfType(selectedSummaryPlot);
|
||||
firstSelectedObject->firstAncestorOrThisOfType(selectedSummaryPlot);
|
||||
}
|
||||
|
||||
if (selectedSummaryPlot)
|
||||
|
||||
@@ -1549,7 +1549,7 @@ void RiuMainWindow::selectedObjectsChanged()
|
||||
RimView* selectedReservoirView = dynamic_cast<RimView*>(firstSelectedObject);
|
||||
if (!selectedReservoirView)
|
||||
{
|
||||
firstSelectedObject->firstAnchestorOrThisOfType(selectedReservoirView);
|
||||
firstSelectedObject->firstAncestorOrThisOfType(selectedReservoirView);
|
||||
}
|
||||
|
||||
bool isActiveViewChanged = false;
|
||||
|
||||
@@ -170,7 +170,7 @@ bool RiuWellLogTrack::eventFilter(QObject* watched, QEvent* event)
|
||||
}
|
||||
|
||||
RimWellLogPlot* plotDefinition;
|
||||
m_plotTrackDefinition->firstAnchestorOrThisOfType(plotDefinition);
|
||||
m_plotTrackDefinition->firstAncestorOrThisOfType(plotDefinition);
|
||||
if (!plotDefinition)
|
||||
{
|
||||
return QwtPlot::eventFilter(watched, event);
|
||||
|
||||
Reference in New Issue
Block a user