194 // addScrArea(framePlaying, QColor("DarkTurquoise")); |
194 // addScrArea(framePlaying, QColor("DarkTurquoise")); |
195 // addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow")); |
195 // addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow")); |
196 QPalette p; |
196 QPalette p; |
197 addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200); |
197 addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200); |
198 addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0); |
198 addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0); |
199 newTeam = new QPushButton(this); |
199 QPushButton * btnSetup = new QPushButton(this); |
200 newTeam->setText(QPushButton::tr("New team")); |
200 btnSetup->setText(QPushButton::tr("Setup")); |
201 connect(newTeam, SIGNAL(clicked()), this, SLOT(newTeamClicked())); |
201 connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked())); |
202 mainLayout.addWidget(newTeam); |
202 mainLayout.addWidget(btnSetup); |
203 } |
203 } |
204 |
204 |
205 void TeamSelWidget::setAcceptOuter(bool acceptOuter) |
205 void TeamSelWidget::setAcceptOuter(bool acceptOuter) |
206 { |
206 { |
207 m_acceptOuter=acceptOuter; |
207 m_acceptOuter=acceptOuter; |
235 QList<HWTeam> TeamSelWidget::getPlayingTeams() const |
235 QList<HWTeam> TeamSelWidget::getPlayingTeams() const |
236 { |
236 { |
237 return curPlayingTeams; |
237 return curPlayingTeams; |
238 } |
238 } |
239 |
239 |
|
240 QList<HWTeam> TeamSelWidget::getDontPlayingTeams() const |
|
241 { |
|
242 return curDontPlayingTeams; |
|
243 } |
|
244 |
240 void TeamSelWidget::pre_changeTeamStatus(HWTeam team) |
245 void TeamSelWidget::pre_changeTeamStatus(HWTeam team) |
241 { |
246 { |
242 team.teamColor=framePlaying->getNextColor(); |
247 team.teamColor=framePlaying->getNextColor(); |
243 emit acceptRequested(team); |
248 emit acceptRequested(team); |
244 } |
249 } |
245 |
|
246 void TeamSelWidget::newTeamClicked() |
|
247 { |
|
248 emit NewTeam(); |
|
249 } |
|