QTfrontend/teamselect.cpp
changeset 131 482f78c595ec
parent 122 4911cf9c1924
child 132 2d0f404cdf05
equal deleted inserted replaced
130:19e3c16fb9f0 131:482f78c595ec
    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   QSize szh=sizeHint();
    54 
    55   if(szh.isValid()) resize(szh);
    55   QSize szh=pAddTeams->sizeHint();
    56   else {
    56   QSize szh1=pRemoveTeams->sizeHint();
    57     szh=pAddTeams->sizeHint();
    57   if(szh.isValid() && szh1.isValid()) {
    58     QSize szh1=pRemoveTeams->sizeHint();
    58     pAddTeams->resize(pAddTeams->size().width(), szh.height());
    59     if(szh.isValid() && szh1.isValid()) {
    59     pRemoveTeams->resize(pRemoveTeams->size().width(), szh1.height());
    60       pAddTeams->resize(szh);
       
    61       pRemoveTeams->resize(szh1);
       
    62     }
       
    63   }
    60   }
    64 }
    61 }
    65 
    62 
    66 void TeamSelWidget::addScrArea(FrameTeams* pfteams, QColor color)
    63 void TeamSelWidget::addScrArea(FrameTeams* pfteams, QColor color)
    67 {
    64 {