QTfrontend/hwform.cpp
changeset 481 44ceded179a4
parent 475 1e46d45da242
child 486 7ea71cd3acd5
equal deleted inserted replaced
480:09434d6c3865 481:44ceded179a4
   252 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
   252 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
   253 {
   253 {
   254 	ui.pageNetGame->pChatWidget->clear();
   254 	ui.pageNetGame->pChatWidget->clear();
   255 	hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget);
   255 	hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget);
   256 	connect(hwnet, SIGNAL(GameStateChanged(GameState)), this, SLOT(NetGameStateChanged(GameState)));
   256 	connect(hwnet, SIGNAL(GameStateChanged(GameState)), this, SLOT(NetGameStateChanged(GameState)));
   257 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
       
   258 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   257 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   259 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   258 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
   260 
   259 
   261 	connect(hwnet, SIGNAL(chatStringFromNet(const QStringList&)),
   260 	connect(hwnet, SIGNAL(chatStringFromNet(const QStringList&)),
   262 		ui.pageNetGame->pChatWidget, SLOT(onChatStringFromNet(const QStringList&)));
   261 		ui.pageNetGame->pChatWidget, SLOT(onChatStringFromNet(const QStringList&)));