author | unc0rr |
Tue, 11 Jul 2006 21:09:06 +0000 | |
changeset 76 | 4e50c2bdeefc |
parent 63 | 27e2b5bb6d4b |
child 85 | 44d9045b26ff |
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()); }