QTfrontend/frameTeam.cpp
changeset 6015 daffc14a518a
parent 5201 7b9aa7aac336
equal deleted inserted replaced
6014:b432c4b9cc9b 6015:daffc14a518a
    97 
    97 
    98 void FrameTeams::setHHNum(const HWTeam& team)
    98 void FrameTeams::setHHNum(const HWTeam& team)
    99 {
    99 {
   100   TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
   100   TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
   101   if(!pTeamShowWidget) return;
   101   if(!pTeamShowWidget) return;
   102   pTeamShowWidget->setHHNum(team.numHedgehogs);
   102   pTeamShowWidget->setHHNum(team.numHedgehogs());
   103 }
   103 }
   104 
   104 
   105 void FrameTeams::setTeamColor(const HWTeam& team)
   105 void FrameTeams::setTeamColor(const HWTeam& team)
   106 {
   106 {
   107   TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
   107   TeamShowWidget* pTeamShowWidget = dynamic_cast<TeamShowWidget*>(getTeamWidget(team));
   108   if(!pTeamShowWidget) return;
   108   if(!pTeamShowWidget) return;
   109   pTeamShowWidget->changeTeamColor(team.teamColor);
   109   pTeamShowWidget->changeTeamColor(team.color());
   110 }
   110 }
   111 
   111 
   112 QWidget* FrameTeams::getTeamWidget(HWTeam team)
   112 QWidget* FrameTeams::getTeamWidget(HWTeam team)
   113 {
   113 {
   114 //qDebug() << "FrameTeams::getTeamWidget getNetID() = " << team.getNetID();
   114 //qDebug() << "FrameTeams::getTeamWidget getNetID() = " << team.getNetID();