Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkDnDDataNodeWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkDnDDataNodeWidget_h
14 #define QmitkDnDDataNodeWidget_h
15 
16 #include "MitkQtWidgetsExports.h"
17 
18 // mitk core module
19 #include <mitkDataNode.h>
20 
21 // qt
22 #include <QFrame>
23 
24 class QDragEnterEvent;
25 class QDropEvent;
26 
36 {
37  Q_OBJECT
38 
39 public:
40 
41  QmitkDnDDataNodeWidget(QWidget* parent = nullptr);
42  ~QmitkDnDDataNodeWidget() override;
43 
44 Q_SIGNALS:
45 
50  void NodesDropped(std::vector<mitk::DataNode*> nodes);
51 
52 private:
53 
54  void dragEnterEvent(QDragEnterEvent* event) override;
55  void dragMoveEvent(QDragMoveEvent* event) override;
56  void dropEvent(QDropEvent* event) override;
57 
58 };
59 
60 #endif
QmitkDnDDataNodeWidget
A drag 'n' drop widget (QFrame) that checks the mime data of the incoming event. If the drag event is...
Definition: QmitkDnDDataNodeWidget.h:35
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
MitkQtWidgetsExports.h
mitkDataNode.h