16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
19 #include <QResizeEvent> |
19 #include <QResizeEvent> |
20 #include <QCoreApplication> |
20 #include <QCoreApplication> |
21 #include <QDebug> |
21 #include <QPalette> |
22 |
22 |
23 #include "frameTeam.h" |
23 #include "frameTeam.h" |
24 #include "teamselhelper.h" |
24 #include "teamselhelper.h" |
25 #include "hwconsts.h" |
25 #include "hwconsts.h" |
26 |
26 |
27 FrameTeams::FrameTeams(QWidget* parent) : |
27 FrameTeams::FrameTeams(QWidget* parent) : |
28 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this), nonInteractive(false) |
28 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this), nonInteractive(false) |
29 { |
29 { |
30 mainLayout.setSpacing(1); |
30 QPalette newPalette = palette(); |
|
31 newPalette.setColor(QPalette::Window, QColor(0x13, 0x0f, 0x2c)); |
|
32 setPalette(newPalette); |
|
33 setAutoFillBackground(true); |
|
34 |
|
35 mainLayout.setSpacing(1); |
31 |
36 |
32 availableColors.push_back(*color1); |
37 availableColors.push_back(*color1); |
33 availableColors.push_back(*color2); |
38 availableColors.push_back(*color2); |
34 availableColors.push_back(*color3); |
39 availableColors.push_back(*color3); |
35 availableColors.push_back(*color4); |
40 availableColors.push_back(*color4); |
36 availableColors.push_back(*color5); |
41 availableColors.push_back(*color5); |
37 availableColors.push_back(*color6); |
42 availableColors.push_back(*color6); |
38 |
43 |
39 resetColors(); |
44 resetColors(); |
40 } |
45 } |
41 |
46 |
42 void FrameTeams::setNonInteractive() |
47 void FrameTeams::setNonInteractive() |
43 { |
48 { |
44 nonInteractive=true; |
49 nonInteractive=true; |