equal
deleted
inserted
replaced
60 mainLayout.removeWidget(it.value()); |
60 mainLayout.removeWidget(it.value()); |
61 delete it.value(); |
61 delete it.value(); |
62 teamToWidget.erase(it); |
62 teamToWidget.erase(it); |
63 } |
63 } |
64 |
64 |
|
65 void FrameTeams::setHHNum(const HWTeam& team) |
|
66 { |
|
67 TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team)); |
|
68 if(!pTeamShowWidget) throw; |
|
69 pTeamShowWidget->setHHNum(team.numHedgehogs); |
|
70 } |
|
71 |
65 QWidget* FrameTeams::getTeamWidget(HWTeam team) |
72 QWidget* FrameTeams::getTeamWidget(HWTeam team) |
66 { |
73 { |
67 tmapTeamToWidget::iterator it=teamToWidget.find(team); |
74 tmapTeamToWidget::iterator it=teamToWidget.find(team); |
68 QWidget* ret = it!=teamToWidget.end() ? it.value() : 0; |
75 QWidget* ret = it!=teamToWidget.end() ? it.value() : 0; |
69 return ret; |
76 return ret; |