Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
QmitkDnDFrameWidget.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 QmitkDndFrameWidget_h
14 #define QmitkDndFrameWidget_h
15 
16 #include <QWidget>
18 //drag&drop
19 class QDragEnterEvent;
20 class QDropEvent;
21 class QMouseEvent;
22 
23 class QmitkDnDFrameWidgetPrivate;
24 
33 class MITK_QT_COMMON QmitkDnDFrameWidget : public QWidget
34 {
35  Q_OBJECT
36 
37 public:
38  QmitkDnDFrameWidget(QWidget *parent);
39  ~QmitkDnDFrameWidget() override;
40 
41 private:
42  void dragEnterEvent( QDragEnterEvent *event ) override;
43  void dropEvent( QDropEvent * event ) override;
44 
45  const QScopedPointer<QmitkDnDFrameWidgetPrivate> d;
46 
47 };
48 
49 
50 #endif
Enables loading data into a MITK application via Drag&#39;n Drop.
#define MITK_QT_COMMON