author | unc0rr |
Thu, 27 Jul 2006 15:24:14 +0000 | |
changeset 89 | f9db56409a86 |
parent 85 | 44d9045b26ff |
child 153 | dc10da2a73f9 |
permissions | -rw-r--r-- |
#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()); }