Connect signal and slot directly for AddTeam event
authorunc0rr
Sun, 14 Jan 2007 13:16:55 +0000
changeset 327 a281ff0803f1
parent 326 c6718bfdd642
child 328 95625db21bf8
Connect signal and slot directly for AddTeam event
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Sun Jan 14 13:10:29 2007 +0000
+++ b/QTfrontend/hwform.cpp	Sun Jan 14 13:16:55 2007 +0000
@@ -242,6 +242,7 @@
 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
 	connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &)));
+	connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamWillPlay(HWTeam)), hwnet, SLOT(AddTeam(HWTeam)));
 	hwnet->Connect(hostName, port, nick);
 	config->SaveOptions();
 }