changeset 63 | 27e2b5bb6d4b |
child 85 | 44d9045b26ff |
62:c3eda0c68cd6 | 63:27e2b5bb6d4b |
---|---|
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 } |