equal
deleted
inserted
replaced
52 void FrameTeams::resetColors() |
52 void FrameTeams::resetColors() |
53 { |
53 { |
54 currentColor=availableColors.begin(); |
54 currentColor=availableColors.begin(); |
55 } |
55 } |
56 |
56 |
|
57 QColor FrameTeams::getNextColor() const |
|
58 { |
|
59 QList<QColor>::ConstIterator nextColor=currentColor; |
|
60 ++nextColor; |
|
61 if (nextColor==availableColors.end()) nextColor=availableColors.begin(); |
|
62 return *nextColor; |
|
63 } |
|
64 |
57 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
65 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
58 { |
66 { |
59 TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this); |
67 TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this); |
60 if(nonInteractive) pTeamShowWidget->setNonInteractive(); |
68 if(nonInteractive) pTeamShowWidget->setNonInteractive(); |
61 // int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height(); |
69 // int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height(); |