Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkCustomWidgetOverlay.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,
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 
18 
20 {
22 }
23 
25 {
26 }
27 
29 {
30  if (widget != nullptr)
31  {
32  m_Widget = widget;
33  m_WidgetIsCustom = true;
34  }
35 }
36 
38 {
39  return m_Widget->size();
40 }
virtual ~QmitkCustomWidgetOverlay()
Default Destructor.
void AddDropShadow(QWidget *widget)
Add drop shadow effect via QGraphicsEffect.
Abstract base class for all overlay-objects in MITK.
Definition: QmitkOverlay.h:53
bool m_WidgetIsCustom
Definition: QmitkOverlay.h:122
QmitkCustomWidgetOverlay(const char *id)
Default Constructor.
QWidget * m_Widget
internal QWidget representing the overlay
Definition: QmitkOverlay.h:120