QTfrontend/vertScrollArea.cpp
author unc0rr
Sat, 26 Aug 2006 10:54:13 +0000
changeset 125 0532e70b1ce4
parent 85 44d9045b26ff
child 153 dc10da2a73f9
permissions -rw-r--r--
Fix unicode names in net game

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