QTfrontend/vertScrollArea.cpp
author unc0rr
Tue, 25 Jul 2006 13:32:11 +0000
changeset 85 44d9045b26ff
parent 63 27e2b5bb6d4b
child 153 dc10da2a73f9
permissions -rw-r--r--
New GameCFGWidget. Now it's possible to set forts mode from ui

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