author | unc0rr |
Tue, 11 Jul 2006 21:09:06 +0000 | |
changeset 76 | 4e50c2bdeefc |
parent 63 | 27e2b5bb6d4b |
child 85 | 44d9045b26ff |
permissions | -rw-r--r-- |
63 | 1 |
#include "vertScrollArea.h" |
2 |
||
3 |
#include <QResizeEvent> |
|
4 |
||
5 |
VertScrArea::VertScrArea(QColor frameColor, QWidget * parent) : |
|
6 |
QScrollArea(parent) |
|
7 |
{ |
|
8 |
QPalette newPalette = palette(); |
|
9 |
newPalette.setColor(QPalette::Background, frameColor); |
|
10 |
setPalette(newPalette); |
|
11 |
} |
|
12 |
||
13 |
void VertScrArea::resizeEvent(QResizeEvent * event) |
|
14 |
{ |
|
15 |
widget()->resize(event->size().width(), widget()->sizeHint().height()); |
|
16 |
} |