equal
deleted
inserted
replaced
34 { |
34 { |
35 if(team.isNetTeam()) |
35 if(team.isNetTeam()) |
36 { |
36 { |
37 framePlaying->addTeam(team, true); |
37 framePlaying->addTeam(team, true); |
38 curPlayingTeams.push_back(team); |
38 curPlayingTeams.push_back(team); |
39 connect(framePlaying->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)), |
|
40 this, SLOT(netTeamStatusChanged(const HWTeam&))); |
|
41 connect(framePlaying->getTeamWidget(team), SIGNAL(hhNmChanged(const HWTeam&)), |
39 connect(framePlaying->getTeamWidget(team), SIGNAL(hhNmChanged(const HWTeam&)), |
42 this, SLOT(hhNumChanged(const HWTeam&))); |
40 this, SLOT(hhNumChanged(const HWTeam&))); |
43 dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team))->hhNumChanged(); |
41 dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team))->hhNumChanged(); |
44 connect(framePlaying->getTeamWidget(team), SIGNAL(teamColorChanged(const HWTeam&)), |
42 connect(framePlaying->getTeamWidget(team), SIGNAL(teamColorChanged(const HWTeam&)), |
45 this, SLOT(proxyTeamColorChanged(const HWTeam&))); |
43 this, SLOT(proxyTeamColorChanged(const HWTeam&))); |
142 break; |
140 break; |
143 } |
141 } |
144 } |
142 } |
145 emit setEnabledGameStart(curPlayingTeams.size()>1); |
143 emit setEnabledGameStart(curPlayingTeams.size()>1); |
146 } |
144 } |
147 |
|
148 void TeamSelWidget::netTeamStatusChanged(const HWTeam& team) |
|
149 { |
|
150 QList<HWTeam>::iterator itPlay=std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team); |
|
151 |
|
152 } |
|
153 |
|
154 //void TeamSelWidget::removeTeam(__attribute__ ((unused)) HWTeam team) |
|
155 //{ |
|
156 //curDontPlayingTeams.erase(std::find(curDontPlayingTeams.begin(), curDontPlayingTeams.end(), team)); |
|
157 //} |
|
158 |
145 |
159 void TeamSelWidget::changeTeamStatus(HWTeam team) |
146 void TeamSelWidget::changeTeamStatus(HWTeam team) |
160 { |
147 { |
161 QList<HWTeam>::iterator itDontPlay=std::find(m_curNotPlayingTeams.begin(), m_curNotPlayingTeams.end(), team); |
148 QList<HWTeam>::iterator itDontPlay=std::find(m_curNotPlayingTeams.begin(), m_curNotPlayingTeams.end(), team); |
162 QList<HWTeam>::iterator itPlay=std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team); |
149 QList<HWTeam>::iterator itPlay=std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team); |