--- a/QTfrontend/frameTeam.cpp Sat Jan 27 14:18:33 2007 +0000
+++ b/QTfrontend/frameTeam.cpp Sat Jan 27 17:41:08 2007 +0000
@@ -76,10 +76,17 @@
void FrameTeams::setHHNum(const HWTeam& team)
{
TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
- if(!pTeamShowWidget) throw;
+ if(!pTeamShowWidget) return;
pTeamShowWidget->setHHNum(team.numHedgehogs);
}
+void FrameTeams::setTeamColor(const HWTeam& team)
+{
+ TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
+ if(!pTeamShowWidget) return;
+ pTeamShowWidget->changeTeamColor(team.teamColor);
+}
+
QWidget* FrameTeams::getTeamWidget(HWTeam team)
{
tmapTeamToWidget::iterator it=teamToWidget.find(team);
@@ -91,3 +98,8 @@
{
return overallHedgehogs==maxHedgehogsPerGame;
}
+
+void FrameTeams::emitTeamColorChanged(const HWTeam& team)
+{
+ emit teamColorChanged(team);
+}