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&))); |