equal
deleted
inserted
replaced
44 currentColor=availableColors.begin(); |
44 currentColor=availableColors.begin(); |
45 } |
45 } |
46 |
46 |
47 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
47 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
48 { |
48 { |
49 TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, willPlay, this); |
49 TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this); |
50 // int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height(); |
50 // int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height(); |
51 teamToWidget.insert(make_pair(team, pTeamShowWidget)); |
51 teamToWidget.insert(make_pair(team, pTeamShowWidget)); |
52 mainLayout.addWidget(pTeamShowWidget); |
52 mainLayout.addWidget(pTeamShowWidget); |
53 QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size()); |
53 QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size()); |
54 QCoreApplication::postEvent(parentWidget(), pevent); |
54 QCoreApplication::postEvent(parentWidget(), pevent); |