QTfrontend/vertScrollArea.cpp
author displacer
Fri, 24 Feb 2006 16:06:12 +0000
changeset 63 27e2b5bb6d4b
child 85 44d9045b26ff
permissions -rw-r--r--
Scroll added to team control widget

#include "vertScrollArea.h"

#include <QResizeEvent>

VertScrArea::VertScrArea(QColor frameColor, QWidget * parent) :
  QScrollArea(parent)
{
  QPalette newPalette = palette();
  newPalette.setColor(QPalette::Background, frameColor);
  setPalette(newPalette);
}

void VertScrArea::resizeEvent(QResizeEvent * event)
{
  widget()->resize(event->size().width(), widget()->sizeHint().height());
}