equal
deleted
inserted
replaced
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); |