MCPcopy Create free account
hub / github.com/MITK/MITK / moveNodesLayer

Method moveNodesLayer

Modules/QtWidgets/src/QmitkRenderWindowDataNodeTableModel.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void QmitkRenderWindowDataNodeTableModel::moveNodesLayer(QSet<mitk::DataNode*> movedNodes, int targetLayer)
339{
340 auto baseRenderer = m_BaseRenderer.Lock();
341 for (const auto& dataNode : std::as_const(movedNodes))
342 {
343 m_RenderWindowLayerController->MoveNodeToPosition(dataNode, targetLayer, baseRenderer);
344 }
345
346 this->UpdateModelData();
347}
348
349bool QmitkRenderWindowDataNodeTableModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int /*row*/, int /*column*/, const QModelIndex& parent)
350{

Callers 1

dropMimeDataMethod · 0.95

Calls 3

UpdateModelDataMethod · 0.95
MoveNodeToPositionMethod · 0.80
LockMethod · 0.45

Tested by

no test coverage detected