QTfrontend/vertScrollArea.cpp
author unc0rr
Sat, 08 Jul 2006 21:40:03 +0000
changeset 74 42257fee61ae
parent 63 27e2b5bb6d4b
child 85 44d9045b26ff
permissions -rw-r--r--
- Unicode support for team and hedgehogs names - Clouds move in vertical direction also - Many fixes to hedgehog physics - Support for different images in 16 and 32 bit screen resolution - Fixed bots behavior after attack - Fixed camera behavior right after the game start

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