equal
deleted
inserted
replaced
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())); |