Merge pull request #8459 from OPM/8458-summary-drop-target

Closes #8458
This commit is contained in:
Magne Sjaastad
2022-01-21 14:32:51 +01:00
committed by GitHub
parent b0470d38ee
commit d5b17976ed
16 changed files with 272 additions and 25 deletions

View File

@@ -27,7 +27,8 @@
namespace caf
{
class PdmObjectHandle;
}
class PdmUiTreeView;
} // namespace caf
class RimMultiPlot;
class RimIdenticalGridCaseGroup;
@@ -49,6 +50,9 @@ public:
RiuDragDrop();
~RiuDragDrop() override;
static std::vector<caf::PdmObjectHandle*> draggedObjectsFromTreeView( caf::PdmUiTreeView* dragSource,
const QMimeData* data );
protected:
Qt::DropActions supportedDropActions() const override;
Qt::ItemFlags flags( const QModelIndex& index ) const override;
@@ -96,7 +100,9 @@ private:
caf::PdmObjectGroup& objectGroup,
RimSurfaceCollection* surfaceCollection );
static void objectGroupFromModelIndexes( caf::PdmObjectGroup* objectGroup, const QModelIndexList& indexes );
static void objectGroupFromModelIndexes( caf::PdmUiTreeView* uiTreeView,
caf::PdmObjectGroup* objectGroup,
const QModelIndexList& indexes );
static std::vector<caf::PdmPointer<caf::PdmObjectHandle>> objectHandlesFromSelection();
private: