equal
deleted
inserted
replaced
3 #include <QResizeEvent> |
3 #include <QResizeEvent> |
4 |
4 |
5 VertScrArea::VertScrArea(QColor frameColor, QWidget * parent) : |
5 VertScrArea::VertScrArea(QColor frameColor, QWidget * parent) : |
6 QScrollArea(parent) |
6 QScrollArea(parent) |
7 { |
7 { |
8 QPalette newPalette = palette(); |
8 QPalette newPalette = palette(); |
9 newPalette.setColor(QPalette::Background, frameColor); |
9 newPalette.setColor(QPalette::Background, frameColor); |
10 setPalette(newPalette); |
10 setPalette(newPalette); |
11 } |
11 } |
12 |
12 |
13 void VertScrArea::resizeEvent(QResizeEvent * event) |
13 void VertScrArea::resizeEvent(QResizeEvent * event) |
14 { |
14 { |
15 widget()->resize(event->size().width(), widget()->sizeHint().height()); |
15 widget()->resize(event->size().width(), widget()->sizeHint().height()); |
16 } |
16 } |