equal
deleted
inserted
replaced
9 FrameTeams::FrameTeams(QWidget* parent) : |
9 FrameTeams::FrameTeams(QWidget* parent) : |
10 QWidget(parent), mainLayout(this) |
10 QWidget(parent), mainLayout(this) |
11 { |
11 { |
12 } |
12 } |
13 |
13 |
14 void FrameTeams::addTeam(HWTeam team) |
14 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
15 { |
15 { |
16 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, this); |
16 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, willPlay, 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); |