equal
deleted
inserted
replaced
162 } |
162 } |
163 |
163 |
164 void HWTeam::SetToPage(HWForm * hwform) |
164 void HWTeam::SetToPage(HWForm * hwform) |
165 { |
165 { |
166 hwform->ui.pageEditTeam->TeamNameEdit->setText(TeamName); |
166 hwform->ui.pageEditTeam->TeamNameEdit->setText(TeamName); |
167 hwform->ui.pageEditTeam->difficultyBox->setValue(difficulty); |
167 hwform->ui.pageEditTeam->CBTeamLvl->setCurrentIndex(difficulty); |
|
168 hwform->ui.pageEditTeam->CBTeamLvl_activated(difficulty); |
168 for(int i = 0; i < 8; i++) |
169 for(int i = 0; i < 8; i++) |
169 { |
170 { |
170 hwform->ui.pageEditTeam->HHNameEdit[i]->setText(HHName[i]); |
171 hwform->ui.pageEditTeam->HHNameEdit[i]->setText(HHName[i]); |
171 } |
172 } |
172 hwform->ui.pageEditTeam->CBGrave->setCurrentIndex(hwform->ui.pageEditTeam->CBGrave->findText(Grave)); |
173 hwform->ui.pageEditTeam->CBGrave->setCurrentIndex(hwform->ui.pageEditTeam->CBGrave->findText(Grave)); |
182 } |
183 } |
183 |
184 |
184 void HWTeam::GetFromPage(HWForm * hwform) |
185 void HWTeam::GetFromPage(HWForm * hwform) |
185 { |
186 { |
186 TeamName = hwform->ui.pageEditTeam->TeamNameEdit->text(); |
187 TeamName = hwform->ui.pageEditTeam->TeamNameEdit->text(); |
187 difficulty = hwform->ui.pageEditTeam->difficultyBox->value(); |
188 difficulty = hwform->ui.pageEditTeam->CBTeamLvl->currentIndex(); |
188 for(int i = 0; i < 8; i++) |
189 for(int i = 0; i < 8; i++) |
189 { |
190 { |
190 HHName[i] = hwform->ui.pageEditTeam->HHNameEdit[i]->text(); |
191 HHName[i] = hwform->ui.pageEditTeam->HHNameEdit[i]->text(); |
191 } |
192 } |
192 |
193 |