QTfrontend/frameTeam.cpp
changeset 352 4665bfe25470
parent 348 c91b983de18f
child 362 b28e0dd48269
equal deleted inserted replaced
351:29bc9c36ad5f 352:4665bfe25470
    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;