26 |
26 |
27 FrameTeams::FrameTeams(QWidget* parent) : |
27 FrameTeams::FrameTeams(QWidget* parent) : |
28 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this) |
28 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this) |
29 { |
29 { |
30 mainLayout.setSpacing(1); |
30 mainLayout.setSpacing(1); |
|
31 |
|
32 availableColors.push_back(QColor(0, 0, 255)); |
|
33 availableColors.push_back(QColor(0, 255, 0)); |
|
34 availableColors.push_back(QColor(0, 255, 255)); |
|
35 availableColors.push_back(QColor(255, 0, 0)); |
|
36 availableColors.push_back(QColor(255, 0, 255)); |
|
37 availableColors.push_back(QColor(255, 255, 0)); |
|
38 |
|
39 resetColors(); |
|
40 } |
|
41 |
|
42 void FrameTeams::resetColors() |
|
43 { |
|
44 currentColor=availableColors.begin(); |
31 } |
45 } |
32 |
46 |
33 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
47 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
34 { |
48 { |
35 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, willPlay, this); |
49 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, willPlay, this); |