QTfrontend/teamselect.cpp
changeset 122 4911cf9c1924
parent 121 6c7111eddea9
child 131 482f78c595ec
equal deleted inserted replaced
121:6c7111eddea9 122:4911cf9c1924
    49 
    49 
    50   pAddTeams->addTeam(team);
    50   pAddTeams->addTeam(team);
    51   pRemoveTeams->removeTeam(team);
    51   pRemoveTeams->removeTeam(team);
    52   QObject::connect(pAddTeams->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
    52   QObject::connect(pAddTeams->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
    53 		   this, SLOT(changeTeamStatus(HWTeam)));
    53 		   this, SLOT(changeTeamStatus(HWTeam)));
    54   resize(sizeHint());
    54   QSize szh=sizeHint();
       
    55   if(szh.isValid()) resize(szh);
       
    56   else {
       
    57     szh=pAddTeams->sizeHint();
       
    58     QSize szh1=pRemoveTeams->sizeHint();
       
    59     if(szh.isValid() && szh1.isValid()) {
       
    60       pAddTeams->resize(szh);
       
    61       pRemoveTeams->resize(szh1);
       
    62     }
       
    63   }
    55 }
    64 }
    56 
    65 
    57 void TeamSelWidget::addScrArea(FrameTeams* pfteams, QColor color)
    66 void TeamSelWidget::addScrArea(FrameTeams* pfteams, QColor color)
    58 {
    67 {
    59   VertScrArea* area=new VertScrArea(color);
    68   VertScrArea* area=new VertScrArea(color);