QTfrontend/ui/page/pageeditteam.cpp
changeset 14857 b9437746bffb
parent 13227 26c739440bef
child 14860 e239378a9400
equal deleted inserted replaced
14856:57ed3981db20 14857:b9437746bffb
   488 {
   488 {
   489     QMessageBox reallyDeleteMsg(this);
   489     QMessageBox reallyDeleteMsg(this);
   490     reallyDeleteMsg.setIcon(QMessageBox::Question);
   490     reallyDeleteMsg.setIcon(QMessageBox::Question);
   491     reallyDeleteMsg.setWindowTitle(QMessageBox::tr("Teams - Are you sure?"));
   491     reallyDeleteMsg.setWindowTitle(QMessageBox::tr("Teams - Are you sure?"));
   492     reallyDeleteMsg.setText(QMessageBox::tr("Do you really want to delete the team '%1'?").arg(name));
   492     reallyDeleteMsg.setText(QMessageBox::tr("Do you really want to delete the team '%1'?").arg(name));
       
   493     reallyDeleteMsg.setTextFormat(Qt::PlainText);
   493     reallyDeleteMsg.setWindowModality(Qt::WindowModal);
   494     reallyDeleteMsg.setWindowModality(Qt::WindowModal);
   494     reallyDeleteMsg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
   495     reallyDeleteMsg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
   495 
   496 
   496     if (reallyDeleteMsg.exec() == QMessageBox::Ok)
   497     if (reallyDeleteMsg.exec() == QMessageBox::Ok)
   497         HWTeam(name).deleteFile();
   498         HWTeam(name).deleteFile();
   655 
   656 
   656         QMessageBox teamNameFixedMsg(this);
   657         QMessageBox teamNameFixedMsg(this);
   657         teamNameFixedMsg.setIcon(QMessageBox::Warning);
   658         teamNameFixedMsg.setIcon(QMessageBox::Warning);
   658         teamNameFixedMsg.setWindowTitle(QMessageBox::tr("Teams - Name already taken"));
   659         teamNameFixedMsg.setWindowTitle(QMessageBox::tr("Teams - Name already taken"));
   659         teamNameFixedMsg.setText(QMessageBox::tr("The team name '%1' is already taken, so your team has been renamed to '%2'.").arg(origName).arg(team.name()));
   660         teamNameFixedMsg.setText(QMessageBox::tr("The team name '%1' is already taken, so your team has been renamed to '%2'.").arg(origName).arg(team.name()));
       
   661         teamNameFixedMsg.setTextFormat(Qt::PlainText);
   660         teamNameFixedMsg.setWindowModality(Qt::WindowModal);
   662         teamNameFixedMsg.setWindowModality(Qt::WindowModal);
   661         teamNameFixedMsg.setStandardButtons(QMessageBox::Ok);
   663         teamNameFixedMsg.setStandardButtons(QMessageBox::Ok);
   662         teamNameFixedMsg.exec();
   664         teamNameFixedMsg.exec();
   663 
   665 
   664         team.saveToFile();
   666         team.saveToFile();