QTfrontend/vertScrollArea.cpp
author unc0rr
Fri, 15 Sep 2006 20:38:25 +0000
changeset 148 c0355acf07c8
parent 85 44d9045b26ff
child 153 dc10da2a73f9
permissions -rw-r--r--
Don't save demos in 'bin' dir

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