QTfrontend/vertScrollArea.cpp
author unc0rr
Sun, 06 Aug 2006 15:47:20 +0000
changeset 96 aeeb4da6b157
parent 85 44d9045b26ff
child 153 dc10da2a73f9
permissions -rw-r--r--
prepare for the next commit

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