Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryIDropTargetListener.cpp
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 
15 
16 namespace berry {
17 
19 {
20 }
21 
23 {
24  if (l == nullptr) return;
25 
26  Types t = l->GetDropTargetEventTypes();
27 
28  if (t & ENTER)
30  if (t & LEAVE)
32  if (t & MOVE)
34  if (t & DROP)
36 }
37 
39 {
40  if (l == nullptr) return;
41 
46 }
47 
48 }
virtual void DropEvent(QDropEvent *)
void AddListener(IDropTargetListener *listener)
virtual Events::Types GetDropTargetEventTypes() const =0
virtual void DragEnterEvent(QDragEnterEvent *)
virtual void DragLeaveEvent(QDragLeaveEvent *)
virtual void DragMoveEvent(QDragMoveEvent *)
void RemoveListener(IDropTargetListener *listener)