equal
deleted
inserted
replaced
78 frameDontPlaying=new FrameTeams(); |
78 frameDontPlaying=new FrameTeams(); |
79 addScrArea(framePlaying, QColor("DarkTurquoise")); |
79 addScrArea(framePlaying, QColor("DarkTurquoise")); |
80 addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow")); |
80 addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow")); |
81 } |
81 } |
82 |
82 |
83 void TeamSelWidget::resetPlayingTeams() |
83 void TeamSelWidget::resetPlayingTeams(const QStringList& teamslist) |
84 { |
84 { |
|
85 list<HWTeam>::iterator it; |
|
86 for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) { |
|
87 framePlaying->removeTeam(*it); |
|
88 } |
|
89 curPlayingTeams.clear(); |
|
90 for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) { |
|
91 frameDontPlaying->removeTeam(*it); |
|
92 } |
|
93 curDontPlayingTeams.clear(); |
|
94 |
|
95 for (QStringList::ConstIterator it = teamslist.begin(); it != teamslist.end(); ++it ) { |
|
96 addTeam(*it); |
|
97 } |
85 } |
98 } |
86 |
99 |
87 bool TeamSelWidget::isPlaying(HWTeam team) |
100 bool TeamSelWidget::isPlaying(HWTeam team) |
88 { |
101 { |
89 return std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team)!=curPlayingTeams.end(); |
102 return std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team)!=curPlayingTeams.end(); |