QTfrontend/team.cpp
changeset 336 82d654db133d
parent 319 7f3bd9e31f18
child 339 7535ab6c3820
equal deleted inserted replaced
335:751348947fce 336:82d654db133d
   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