QTfrontend/vertScrollArea.cpp
author unc0rr
Mon, 24 Jul 2006 14:03:51 +0000
changeset 83 207c85fbef51
parent 63 27e2b5bb6d4b
child 85 44d9045b26ff
permissions -rw-r--r--
- First hedgehog in team has first turn in team - AI fix: let bots go to the right and... Show whether round finished with draw or team won... get rid of error message

#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());
}