QTfrontend/teamselect.cpp
changeset 231 c77b16e48273
parent 207 287077789132
child 240 c7f0a4f7a54a
equal deleted inserted replaced
230:ff76ba0671f7 231:c77b16e48273
    95   frameDontPlaying=new FrameTeams();
    95   frameDontPlaying=new FrameTeams();
    96   addScrArea(framePlaying, QColor("DarkTurquoise"));
    96   addScrArea(framePlaying, QColor("DarkTurquoise"));
    97   addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow"));
    97   addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow"));
    98 }
    98 }
    99 
    99 
   100 void TeamSelWidget::resetPlayingTeams(const QStringList& teamslist)
   100 void TeamSelWidget::resetPlayingTeams(const QList<HWTeam>& teamslist)
   101 {
   101 {
   102   list<HWTeam>::iterator it;
   102   list<HWTeam>::iterator it;
   103   for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) {
   103   for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) {
   104     framePlaying->removeTeam(*it);
   104     framePlaying->removeTeam(*it);
   105   }
   105   }
   108   for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) {
   108   for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) {
   109     frameDontPlaying->removeTeam(*it);
   109     frameDontPlaying->removeTeam(*it);
   110   }
   110   }
   111   curDontPlayingTeams.clear();
   111   curDontPlayingTeams.clear();
   112 
   112 
   113   for (QStringList::ConstIterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
   113   for (QList<HWTeam>::ConstIterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
   114     addTeam(*it);
   114     addTeam(*it);
   115   }
   115   }
   116 }
   116 }
   117 
   117 
   118 bool TeamSelWidget::isPlaying(HWTeam team) const
   118 bool TeamSelWidget::isPlaying(HWTeam team) const