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 "frameTeam.h" |
19 #include "frameTeam.h" |
20 #include "teamselhelper.h" |
20 #include "teamselhelper.h" |
|
21 #include "hwconsts.h" |
21 |
22 |
22 #include <QResizeEvent> |
23 #include <QResizeEvent> |
23 #include <QCoreApplication> |
24 #include <QCoreApplication> |
24 |
25 |
25 FrameTeams::FrameTeams(QWidget* parent) : |
26 FrameTeams::FrameTeams(QWidget* parent) : |
26 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this), nonInteractive(false) |
27 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this), nonInteractive(false) |
27 { |
28 { |
28 mainLayout.setSpacing(1); |
29 mainLayout.setSpacing(1); |
29 |
30 |
30 availableColors.push_back(QColor( 0, 255, 255)); |
31 availableColors.push_back(*color1); |
31 availableColors.push_back(QColor(255, 127, 127)); |
32 availableColors.push_back(*color2); |
32 availableColors.push_back(QColor(103, 167, 231)); |
33 availableColors.push_back(*color3); |
33 availableColors.push_back(QColor( 37, 181, 61)); |
34 availableColors.push_back(*color4); |
34 availableColors.push_back(QColor(247, 237, 112)); |
35 availableColors.push_back(*color5); |
35 availableColors.push_back(QColor(192, 85, 160)); |
36 availableColors.push_back(*color6); |
36 |
37 |
37 resetColors(); |
38 resetColors(); |
38 } |
39 } |
39 |
40 |
40 void FrameTeams::setNonInteractive() |
41 void FrameTeams::setNonInteractive() |