QTfrontend/ui/widget/teamselect.cpp
changeset 8886 5c521d1fdd63
parent 8726 ef2abeafa7cb
child 8910 a60f7ebab219
equal deleted inserted replaced
8884:08fe08651130 8886:5c521d1fdd63
   256     framePlaying = new FrameTeams();
   256     framePlaying = new FrameTeams();
   257     frameDontPlaying = new FrameTeams();
   257     frameDontPlaying = new FrameTeams();
   258 
   258 
   259     // Add notice about number of required teams.
   259     // Add notice about number of required teams.
   260     numTeamNotice = new QLabel(tr("At least two teams are required to play!"));
   260     numTeamNotice = new QLabel(tr("At least two teams are required to play!"));
       
   261     numTeamNotice->setWordWrap(true);
   261     mainLayout.addWidget(numTeamNotice);
   262     mainLayout.addWidget(numTeamNotice);
   262 
   263 
   263     QPalette p;
   264     QPalette p;
   264     p.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
   265     p.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
   265     addScrArea(framePlaying, p.color(QPalette::Window).light(105), 150);
   266     addScrArea(framePlaying, p.color(QPalette::Window).light(105), 150);
   266     addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
   267     addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
       
   268 
       
   269     this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
       
   270     this->setMinimumWidth(200);
   267 }
   271 }
   268 
   272 
   269 void TeamSelWidget::setAcceptOuter(bool acceptOuter)
   273 void TeamSelWidget::setAcceptOuter(bool acceptOuter)
   270 {
   274 {
   271     m_acceptOuter=acceptOuter;
   275     m_acceptOuter=acceptOuter;