/*============================================================================

The Medical Imaging Interaction Toolkit (MITK)

Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.

Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.

============================================================================*/

#include <QmitkOverlayContainerWidget.h>

#include <QPainter>

QmitkOverlayContainerWidget::QmitkOverlayContainerWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
{
}

QmitkOverlayContainerWidget::~QmitkOverlayContainerWidget()
{
}

void QmitkOverlayContainerWidget::paintEvent(QPaintEvent *)
{
  QPainter p(this);
  p.setCompositionMode(QPainter::CompositionMode_Clear);
  p.fillRect(this->rect(), Qt::transparent);
}
