QTfrontend/vertScrollArea.cpp
author unc0rr
Wed, 16 Aug 2006 11:41:00 +0000
changeset 111 30ca06092a64
parent 85 44d9045b26ff
child 153 dc10da2a73f9
permissions -rw-r--r--
- 'net nickname' and 'server address' options are on PageNet - Don't set bots process thread pointer to nil

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