484 void PageNet::updateServersList() |
484 void PageNet::updateServersList() |
485 { |
485 { |
486 if (netServersWidget) delete netServersWidget; |
486 if (netServersWidget) delete netServersWidget; |
487 |
487 |
488 if (rbLocalGame->isChecked()) |
488 if (rbLocalGame->isChecked()) |
489 { |
|
490 netServersWidget = new HWNetUdpWidget(ConnGroupBox); |
489 netServersWidget = new HWNetUdpWidget(ConnGroupBox); |
491 static_cast<HWNetUdpWidget *>(netServersWidget)->updateList(); |
|
492 } |
|
493 else |
490 else |
494 { |
|
495 netServersWidget = new HWNetWwwWidget(ConnGroupBox); |
491 netServersWidget = new HWNetWwwWidget(ConnGroupBox); |
496 static_cast<HWNetWwwWidget *>(netServersWidget)->updateList(); |
492 |
497 } |
493 netServersWidget->updateList(); |
498 GBClayout->addWidget(netServersWidget, 1, 0, 1, 3); |
494 GBClayout->addWidget(netServersWidget, 1, 0, 1, 3); |
499 |
495 |
500 connect(BtnUpdateSList, SIGNAL(clicked()), netServersWidget, SLOT(updateList())); |
496 connect(BtnUpdateSList, SIGNAL(clicked()), netServersWidget, SLOT(updateList())); |
501 connect(netServersWidget->serversList, SIGNAL(itemDoubleClicked(QListWidgetItem *)), this, SLOT(slotConnect())); |
497 connect(netServersWidget->serversList, SIGNAL(itemDoubleClicked(QListWidgetItem *)), this, SLOT(slotConnect())); |
502 } |
498 } |