QTfrontend/frameTeam.cpp
changeset 87 ff213e443336
parent 80 3c3dc6a148ca
child 117 d21a48200772
equal deleted inserted replaced
86:664b536a1c27 87:ff213e443336
    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 }