equal
deleted
inserted
replaced
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 { |