QTfrontend/ui/page/pagenet.cpp
branchqt5transition
changeset 12897 fc47fc4af6bd
parent 11819 7642955690bc
child 14407 35af3d1ccdfc
equal deleted inserted replaced
12896:8869b5256720 12897:fc47fc4af6bd
    97 
    97 
    98 void PageNet::updateServersList()
    98 void PageNet::updateServersList()
    99 {
    99 {
   100     tvServersList->setModel(new HWNetUdpModel(tvServersList));
   100     tvServersList->setModel(new HWNetUdpModel(tvServersList));
   101 
   101 
   102     tvServersList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
   102     tvServersList->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
   103 
   103 
   104     static_cast<HWNetServersModel *>(tvServersList->model())->updateList();
   104     static_cast<HWNetServersModel *>(tvServersList->model())->updateList();
   105 
   105 
   106     connect(BtnUpdateSList, SIGNAL(clicked()), static_cast<HWNetServersModel *>(tvServersList->model()), SLOT(updateList()));
   106     connect(BtnUpdateSList, SIGNAL(clicked()), static_cast<HWNetServersModel *>(tvServersList->model()), SLOT(updateList()));
   107     connect(tvServersList, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(slotConnect()));
   107     connect(tvServersList, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(slotConnect()));