QTfrontend/frameTeam.cpp
changeset 341 184230eb4151
parent 207 287077789132
child 348 c91b983de18f
equal deleted inserted replaced
340:f5d4db927eba 341:184230eb4151
    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);