QTfrontend/frameTeam.cpp
changeset 382 e7220e48ead1
parent 372 4bac77f8cd38
child 383 09a8795105a4
equal deleted inserted replaced
381:6096d74c37da 382:e7220e48ead1
    52 void FrameTeams::resetColors()
    52 void FrameTeams::resetColors()
    53 {
    53 {
    54   currentColor=availableColors.begin();
    54   currentColor=availableColors.begin();
    55 }
    55 }
    56 
    56 
       
    57 QColor FrameTeams::getNextColor() const
       
    58 {
       
    59   QList<QColor>::ConstIterator nextColor=currentColor;
       
    60   ++nextColor;
       
    61   if (nextColor==availableColors.end()) nextColor=availableColors.begin();
       
    62   return *nextColor;
       
    63 }
       
    64 
    57 void FrameTeams::addTeam(HWTeam team, bool willPlay)
    65 void FrameTeams::addTeam(HWTeam team, bool willPlay)
    58 {
    66 {
    59   TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this);
    67   TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this);
    60   if(nonInteractive) pTeamShowWidget->setNonInteractive();
    68   if(nonInteractive) pTeamShowWidget->setNonInteractive();
    61 //  int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height();
    69 //  int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height();