QTfrontend/ui/page/pagetraining.cpp
changeset 14548 0fc9560be9cc
parent 14546 029f40c609b4
child 14612 b4089fa16b34
equal deleted inserted replaced
14547:797e3f441c14 14548:0fc9560be9cc
   348 
   348 
   349             // Challenge highscores
   349             // Challenge highscores
   350             QString highscoreText = QString("");
   350             QString highscoreText = QString("");
   351             QString teamName = CBTeam->currentText();
   351             QString teamName = CBTeam->currentText();
   352             if (missionValueExists(missionName, teamName, "Highscore"))
   352             if (missionValueExists(missionName, teamName, "Highscore"))
   353                 //: Highest score of a team
   353                 highscoreText = highscoreText +
   354                 highscoreText = highscoreText + tr("Team highscore: %1").arg(getMissionValue(missionName, teamName, "Highscore").toString()) + "\n";
   354                     //: Highest score of a team
       
   355                     tr("Team highscore: %1")
       
   356                     .arg(getMissionValue(missionName, teamName, "Highscore").toString()) + "\n";
   355             if (missionValueExists(missionName, teamName, "Lowscore"))
   357             if (missionValueExists(missionName, teamName, "Lowscore"))
   356                 //: Lowest score of a team
   358                 highscoreText = highscoreText +
   357                 highscoreText = highscoreText + tr("Team lowscore: %1").arg(getMissionValue(missionName, teamName, "Lowscore").toString()) + "\n";
   359                     //: Lowest score of a team
       
   360                     tr("Team lowscore: %1")
       
   361                     .arg(getMissionValue(missionName, teamName, "Lowscore").toString()) + "\n";
   358             if (missionValueExists(missionName, teamName, "TimeRecord"))
   362             if (missionValueExists(missionName, teamName, "TimeRecord"))
   359             {
   363             {
   360                 double time = ((double) getMissionValue(missionName, teamName, "TimeRecord").toInt()) / 1000.0;
   364                 double time = ((double) getMissionValue(missionName, teamName, "TimeRecord").toInt()) / 1000.0;
   361                 highscoreText = highscoreText + tr("Team's best time: %L1 s").arg(time, 0, 'f', 3) + "\n";
   365                 highscoreText = highscoreText + tr("Team's best time: %L1 s").arg(time, 0, 'f', 3) + "\n";
   362             }
   366             }