author | unc0rr |
Sun, 27 Aug 2006 12:41:27 +0000 | |
changeset 126 | 93df479aa1b9 |
parent 85 | 44d9045b26ff |
child 153 | dc10da2a73f9 |
permissions | -rw-r--r-- |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
1 |
#include "vertScrollArea.h" |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
2 |
|
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
3 |
#include <QResizeEvent> |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
4 |
|
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
5 |
VertScrArea::VertScrArea(QColor frameColor, QWidget * parent) : |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
6 |
QScrollArea(parent) |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
7 |
{ |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
8 |
QPalette newPalette = palette(); |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
9 |
newPalette.setColor(QPalette::Background, frameColor); |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
10 |
setPalette(newPalette); |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
11 |
} |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
12 |
|
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
13 |
void VertScrArea::resizeEvent(QResizeEvent * event) |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
14 |
{ |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
15 |
widget()->resize(event->size().width(), widget()->sizeHint().height()); |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
63
diff
changeset
|
16 |
} |