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