QTfrontend/vertScrollArea.cpp
author displacer
Sun, 20 Aug 2006 17:34:22 +0000
changeset 122 4911cf9c1924
parent 85 44d9045b26ff
child 153 dc10da2a73f9
permissions -rw-r--r--
resize bugfix

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