equal
deleted
inserted
replaced
12 } |
12 } |
13 |
13 |
14 void FrameTeams::addTeam(tmprop team) |
14 void FrameTeams::addTeam(tmprop team) |
15 { |
15 { |
16 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, this); |
16 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, this); |
17 int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height(); |
17 // int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height(); |
18 teamToWidget.insert(make_pair(team, pTeamShowWidget)); |
18 teamToWidget.insert(make_pair(team, pTeamShowWidget)); |
19 mainLayout.addWidget(pTeamShowWidget); |
19 mainLayout.addWidget(pTeamShowWidget); |
20 QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size()); |
20 QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size()); |
21 QCoreApplication::postEvent(parentWidget(), pevent); |
21 QCoreApplication::postEvent(parentWidget(), pevent); |
22 } |
22 } |