QTfrontend/teamselect.cpp
changeset 535 a14eaf35cf4b
parent 523 eddcef907b28
child 572 302ad5c3836d
--- a/QTfrontend/teamselect.cpp	Sun Jun 03 17:21:57 2007 +0000
+++ b/QTfrontend/teamselect.cpp	Sun Jun 03 22:19:47 2007 +0000
@@ -196,10 +196,10 @@
   QPalette p;
   addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200);
   addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
-  newTeam = new QPushButton(this);
-  newTeam->setText(QPushButton::tr("New team"));
-  connect(newTeam, SIGNAL(clicked()), this, SLOT(newTeamClicked()));
-  mainLayout.addWidget(newTeam);
+  QPushButton * btnSetup = new QPushButton(this);
+  btnSetup->setText(QPushButton::tr("Setup"));
+  connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));
+  mainLayout.addWidget(btnSetup);
 }
 
 void TeamSelWidget::setAcceptOuter(bool acceptOuter)
@@ -237,13 +237,13 @@
   return curPlayingTeams;
 }
 
+QList<HWTeam> TeamSelWidget::getDontPlayingTeams() const
+{
+  return curDontPlayingTeams;
+}
+
 void TeamSelWidget::pre_changeTeamStatus(HWTeam team)
 {
   team.teamColor=framePlaying->getNextColor();
   emit acceptRequested(team);
 }
-
-void TeamSelWidget::newTeamClicked()
-{
-	emit NewTeam();
-}