QTfrontend/hwform.cpp
changeset 36 a803a00a3272
parent 34 fbe30de53d1d
child 37 2b7f2a43b999
equal deleted inserted replaced
35:9367f246fb5f 36:a803a00a3272
   304 }
   304 }
   305 
   305 
   306 void HWForm::NetConnect()
   306 void HWForm::NetConnect()
   307 {
   307 {
   308 	hwnet = new HWNet(ui.CBResolution->currentIndex(), ui.CBFullscreen->isChecked());
   308 	hwnet = new HWNet(ui.CBResolution->currentIndex(), ui.CBFullscreen->isChecked());
   309 	hwnet->Connect("172.19.5.168", 6667, ui.editNetNick->text());
       
   310 	connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat()));
   309 	connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat()));
   311 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
   310 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
   312 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   311 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   313 	connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &)));
   312 	connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &)));
       
   313 	hwnet->Connect("172.19.5.168", 6667, ui.editNetNick->text());
   314 }
   314 }
   315 
   315 
   316 void HWForm::NetDisconnect()
   316 void HWForm::NetDisconnect()
   317 {
   317 {
   318 	hwnet->Disconnect();
   318 	hwnet->Disconnect();