mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #8732 from OPM/summarymultiplot_updates2
Summary Multiplot updates
This commit is contained in:
@@ -778,6 +778,8 @@ bool RiuDragDrop::handleGenericDropEvent( QEvent* event, std::vector<caf::PdmObj
|
||||
const MimeDataWithIndexes* mimeData = nullptr;
|
||||
Qt::KeyboardModifiers keyModifiers;
|
||||
|
||||
bool bResult = false;
|
||||
|
||||
if ( event->type() == QEvent::Drop )
|
||||
{
|
||||
// These drop events come from Qwt
|
||||
@@ -788,6 +790,8 @@ bool RiuDragDrop::handleGenericDropEvent( QEvent* event, std::vector<caf::PdmObj
|
||||
keyModifiers = dropEvent->keyboardModifiers();
|
||||
|
||||
dropEvent->acceptProposedAction();
|
||||
dropEvent->accept();
|
||||
bResult = true;
|
||||
}
|
||||
}
|
||||
else if ( event->type() == QEvent::GraphicsSceneDrop )
|
||||
@@ -799,6 +803,8 @@ bool RiuDragDrop::handleGenericDropEvent( QEvent* event, std::vector<caf::PdmObj
|
||||
mimeData = qobject_cast<const MimeDataWithIndexes*>( dropEvent->mimeData() );
|
||||
|
||||
dropEvent->acceptProposedAction();
|
||||
dropEvent->accept();
|
||||
bResult = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -819,8 +825,8 @@ bool RiuDragDrop::handleGenericDropEvent( QEvent* event, std::vector<caf::PdmObj
|
||||
if ( obj ) droppedObjects.push_back( obj );
|
||||
}
|
||||
|
||||
return true;
|
||||
bResult = true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return bResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user