QTfrontend/pages.cpp
changeset 638 e1cc516488f2
parent 636 dc93ac775bb9
child 646 ed610c2cd0a4
equal deleted inserted replaced
637:8fa7ed5e13bd 638:e1cc516488f2
   491 void PageNet::changeServersList()
   491 void PageNet::changeServersList()
   492 {
   492 {
   493 	if (netServersWidget) delete netServersWidget;
   493 	if (netServersWidget) delete netServersWidget;
   494 
   494 
   495 	if (rbLocalGame->isChecked())
   495 	if (rbLocalGame->isChecked())
       
   496 	{
   496 		netServersWidget = new HWNetUdpWidget(ConnGroupBox);
   497 		netServersWidget = new HWNetUdpWidget(ConnGroupBox);
       
   498 		static_cast<HWNetUdpWidget *>(netServersWidget)->updateList();
       
   499 	}
   497 	else
   500 	else
       
   501 	{
   498 		netServersWidget = new HWNetWwwWidget(ConnGroupBox);
   502 		netServersWidget = new HWNetWwwWidget(ConnGroupBox);
       
   503 		static_cast<HWNetWwwWidget *>(netServersWidget)->updateList();
       
   504 	}
   499 	GBClayout->addWidget(netServersWidget, 1, 0, 2, 2);
   505 	GBClayout->addWidget(netServersWidget, 1, 0, 2, 2);
   500 
   506 
   501 	connect(BtnUpdateSList, SIGNAL(clicked()), netServersWidget, SLOT(updateList()));
   507 	connect(BtnUpdateSList, SIGNAL(clicked()), netServersWidget, SLOT(updateList()));
   502 	netServersWidget->updateList();
       
   503 }
   508 }
   504 
   509 
   505 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   510 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   506 {
   511 {
   507 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   512 	QFont * font14 = new QFont("MS Shell Dlg", 14);