Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
17
#include "
QmitkCustomWidgetOverlay.h
"
18
19
QmitkCustomWidgetOverlay::QmitkCustomWidgetOverlay
(
const
char
*
id
) :
QmitkOverlay
(id)
20
{
21
QmitkOverlay::AddDropShadow
(
m_Widget
);
22
}
23
24
QmitkCustomWidgetOverlay::~QmitkCustomWidgetOverlay
()
25
{
26
}
27
28
void
QmitkCustomWidgetOverlay::SetWidget
(QWidget *widget)
29
{
30
if
(widget !=
nullptr
)
31
{
32
m_Widget
= widget;
33
m_WidgetIsCustom
=
true
;
34
}
35
}
36
37
QSize
QmitkCustomWidgetOverlay::GetNeededSize
()
38
{
39
return
m_Widget
->size();
40
}
QmitkCustomWidgetOverlay.h
QmitkCustomWidgetOverlay::~QmitkCustomWidgetOverlay
virtual ~QmitkCustomWidgetOverlay()
Default Destructor.
Definition:
QmitkCustomWidgetOverlay.cpp:24
QmitkOverlay::AddDropShadow
void AddDropShadow(QWidget *widget)
Add drop shadow effect via QGraphicsEffect.
Definition:
QmitkOverlay.cpp:62
QmitkOverlay
Abstract base class for all overlay-objects in MITK.
Definition:
QmitkOverlay.h:53
QmitkOverlay::m_WidgetIsCustom
bool m_WidgetIsCustom
Definition:
QmitkOverlay.h:122
QmitkCustomWidgetOverlay::SetWidget
void SetWidget(QWidget *widget)
Definition:
QmitkCustomWidgetOverlay.cpp:28
QmitkCustomWidgetOverlay::QmitkCustomWidgetOverlay
QmitkCustomWidgetOverlay(const char *id)
Default Constructor.
Definition:
QmitkCustomWidgetOverlay.cpp:19
QmitkOverlay::m_Widget
QWidget * m_Widget
internal QWidget representing the overlay
Definition:
QmitkOverlay.h:120
QmitkCustomWidgetOverlay::GetNeededSize
QSize GetNeededSize() override
Definition:
QmitkCustomWidgetOverlay.cpp:37
git
MITK
Modules
QtOverlays
QmitkCustomWidgetOverlay.cpp
Generated on Fri Feb 3 2017 20:52:12 for Medical Imaging Interaction Toolkit by
1.8.9.1