Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
A drag 'n' drop widget (QFrame) that checks the mime data of the incoming event. If the drag event is coming from another widget and the mime data is of type 'application/x-qmitk-datanode-ptrs' the node(s) will be dropped and a signal is emitted. A class including this DnD-widget can than handle the vector of dropped nodes appropriately. More...
#include <QmitkDnDDataNodeWidget.h>
Signals | |
void | NodesDropped (std::vector< mitk::DataNode *> nodes) |
The signal will be emitted if the drag events are accepted. It contains the vector of nodes that have been dropped. More... | |
Public Member Functions | |
QmitkDnDDataNodeWidget (QWidget *parent=nullptr) | |
~QmitkDnDDataNodeWidget () override | |
A drag 'n' drop widget (QFrame) that checks the mime data of the incoming event. If the drag event is coming from another widget and the mime data is of type 'application/x-qmitk-datanode-ptrs' the node(s) will be dropped and a signal is emitted. A class including this DnD-widget can than handle the vector of dropped nodes appropriately.
Definition at line 35 of file QmitkDnDDataNodeWidget.h.
QmitkDnDDataNodeWidget::QmitkDnDDataNodeWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 21 of file QmitkDnDDataNodeWidget.cpp.
|
override |
Definition at line 27 of file QmitkDnDDataNodeWidget.cpp.
References QmitkMimeTypes::DataNodePtrs, NodesDropped(), and QmitkMimeTypes::ToDataNodePtrList().
|
signal |
The signal will be emitted if the drag events are accepted. It contains the vector of nodes that have been dropped.
Referenced by ~QmitkDnDDataNodeWidget().