QTfrontend/ui/page/pageeditteam.cpp
branchphysfslayer
changeset 7928 88fde28bbda6
parent 7794 ab7b94c03bc9
child 8049 133e22b5c410
equal deleted inserted replaced
7778:3331b30e4ef1 7928:88fde28bbda6
   132 
   132 
   133     QHBoxLayout * hbox = new QHBoxLayout();
   133     QHBoxLayout * hbox = new QHBoxLayout();
   134     CBVoicepack = new QComboBox(GBoxTeam);
   134     CBVoicepack = new QComboBox(GBoxTeam);
   135 
   135 
   136     hbox->addWidget(CBVoicepack, 100);
   136     hbox->addWidget(CBVoicepack, 100);
   137     btnTestSound = addButton(":/res/PlaySound.png", hbox, 1, true);
   137     btnTestSound = addSoundlessButton(":/res/PlaySound.png", hbox, 1, true);
   138     hbox->setStretchFactor(btnTestSound, 1);
   138     hbox->setStretchFactor(btnTestSound, 1);
   139 
   139 
   140     GBTLayout->addLayout(hbox, 4, 1);
   140     GBTLayout->addLayout(hbox, 4, 1);
   141 
   141 
   142     GBoxFort = new QGroupBox(this);
   142     GBoxFort = new QGroupBox(this);
   381     loadTeam(team);
   381     loadTeam(team);
   382 }
   382 }
   383 
   383 
   384 void PageEditTeam::deleteTeam(const QString & name)
   384 void PageEditTeam::deleteTeam(const QString & name)
   385 {
   385 {
   386     QMessageBox reallyDelete(QMessageBox::Question, QMessageBox::tr("Teams"), QMessageBox::tr("Really delete this team?"), QMessageBox::Ok | QMessageBox::Cancel, this);
   386     QMessageBox reallyDeleteMsg(this);
   387 
   387     reallyDeleteMsg.setIcon(QMessageBox::Question);
   388     if (reallyDelete.exec() == QMessageBox::Ok)
   388     reallyDeleteMsg.setWindowTitle(QMessageBox::tr("Teams - Are you sure?"));
       
   389     reallyDeleteMsg.setText(QMessageBox::tr("Do you really want to delete the team '%1'?").arg(name));
       
   390     reallyDeleteMsg.setWindowModality(Qt::WindowModal);
       
   391     reallyDeleteMsg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
       
   392 
       
   393     if (reallyDeleteMsg.exec() == QMessageBox::Ok)
   389         HWTeam(name).deleteFile();
   394         HWTeam(name).deleteFile();
   390 }
   395 }
   391 
   396 
   392 void PageEditTeam::setRandomNames()
   397 void PageEditTeam::setRandomNames()
   393 {
   398 {