192 |
192 |
193 void HWTeam::SetToPage(HWForm * hwform) |
193 void HWTeam::SetToPage(HWForm * hwform) |
194 { |
194 { |
195 hwform->ui.pageEditTeam->TeamNameEdit->setText(TeamName); |
195 hwform->ui.pageEditTeam->TeamNameEdit->setText(TeamName); |
196 hwform->ui.pageEditTeam->CBTeamLvl->setCurrentIndex(difficulty); |
196 hwform->ui.pageEditTeam->CBTeamLvl->setCurrentIndex(difficulty); |
197 hwform->ui.pageEditTeam->CBTeamLvl_activated(difficulty); |
|
198 for(int i = 0; i < 8; i++) |
197 for(int i = 0; i < 8; i++) |
199 { |
198 { |
200 hwform->ui.pageEditTeam->HHNameEdit[i]->setText(HHName[i]); |
199 hwform->ui.pageEditTeam->HHNameEdit[i]->setText(HHName[i]); |
201 hwform->ui.pageEditTeam->HHHats[i]->setCurrentIndex(hwform->ui.pageEditTeam->HHHats[i]->findData(HHHat[i], Qt::DisplayRole)); |
200 hwform->ui.pageEditTeam->HHHats[i]->setCurrentIndex(hwform->ui.pageEditTeam->HHHats[i]->findData(HHHat[i], Qt::DisplayRole)); |
202 } |
201 } |
203 hwform->ui.pageEditTeam->CBGrave->setCurrentIndex(hwform->ui.pageEditTeam->CBGrave->findText(Grave)); |
202 hwform->ui.pageEditTeam->CBGrave->setCurrentIndex(hwform->ui.pageEditTeam->CBGrave->findText(Grave)); |
204 hwform->ui.pageEditTeam->CBGrave_activated(Grave); |
|
205 |
203 |
206 hwform->ui.pageEditTeam->CBFort->setCurrentIndex(hwform->ui.pageEditTeam->CBFort->findText(Fort)); |
204 hwform->ui.pageEditTeam->CBFort->setCurrentIndex(hwform->ui.pageEditTeam->CBFort->findText(Fort)); |
207 hwform->ui.pageEditTeam->CBFort_activated(Fort); |
205 //hwform->ui.pageEditTeam->CBFort_activated(Fort); |
208 |
206 |
209 for(int i = 0; i < BINDS_NUMBER; i++) |
207 for(int i = 0; i < BINDS_NUMBER; i++) |
210 { |
208 { |
211 hwform->ui.pageEditTeam->CBBind[i]->setCurrentIndex(hwform->ui.pageEditTeam->CBBind[i]->findText(binds[i].strbind)); |
209 hwform->ui.pageEditTeam->CBBind[i]->setCurrentIndex(hwform->ui.pageEditTeam->CBBind[i]->findText(binds[i].strbind)); |
212 } |
210 } |