Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 
14 
16 {
18 }
19 
21 {
22 }
23 
25 {
26  if (widget != nullptr)
27  {
28  m_Widget = widget;
29  m_WidgetIsCustom = true;
30  }
31 }
32 
34 {
35  return m_Widget->size();
36 }
void AddDropShadow(QWidget *widget)
Add drop shadow effect via QGraphicsEffect.
Abstract base class for all overlay-objects in MITK.
Definition: QmitkOverlay.h:49
bool m_WidgetIsCustom
Definition: QmitkOverlay.h:118
~QmitkCustomWidgetOverlay() override
Default Destructor.
QmitkCustomWidgetOverlay(const char *id)
Default Constructor.
QWidget * m_Widget
internal QWidget representing the overlay
Definition: QmitkOverlay.h:116