21 #include <QGraphicsDropShadowEffect>
24 : QObject(), m_Id(id), m_Position(top_Left), m_Layer(-1), m_Widget(nullptr), m_WidgetIsCustom(false)
66 auto effect =
new QGraphicsDropShadowEffect(widget);
67 effect->setOffset(QPointF(1.0, 1.0));
68 effect->setBlurRadius(0);
69 effect->setColor(Qt::black);
71 widget->setGraphicsEffect(effect);
virtual void SetPosition(DisplayPosition)
setter for the display-position
virtual unsigned int GetLayer()
getter for the layer
void AddDropShadow(QWidget *widget)
Add drop shadow effect via QGraphicsEffect.
virtual DisplayPosition GetPosition()
getter for the display-position
DisplayPosition
enumeration of all possible display positions
virtual void SetLayer(unsigned int)
setter for the layer
virtual QWidget * GetWidget()
returns the internally handled QWidget
QWidget * m_Widget
internal QWidget representing the overlay
QmitkOverlay(const char *id)
Constructor with string ID.
virtual ~QmitkOverlay()
Default Destructor.
unsigned int m_Layer
layer of the overlay
DisplayPosition m_Position
position of the overlay