Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIDropTargetListener.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
19 
20 namespace berry {
21 
23 {
24 }
25 
27 {
28  if (l == nullptr) return;
29 
30  Types t = l->GetDropTargetEventTypes();
31 
32  if (t & ENTER)
34  if (t & LEAVE)
36  if (t & MOVE)
38  if (t & DROP)
40 }
41 
43 {
44  if (l == nullptr) return;
45 
50 }
51 
52 }
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)