QTfrontend/ui/page/pagegamestats.cpp
changeset 14615 de34abf040ed
parent 14583 50f511588635
child 14742 123aaa2bf4b5
equal deleted inserted replaced
14614:e7bc81b303f3 14615:de34abf040ed
   358             } else if (kindOfPoints == "!POINTS") {
   358             } else if (kindOfPoints == "!POINTS") {
   359                 //: Number of points in stats screen, written after the team name
   359                 //: Number of points in stats screen, written after the team name
   360                 killstring = PageGameStats::tr("(%1 point(s))", "", kills).arg(kills);
   360                 killstring = PageGameStats::tr("(%1 point(s))", "", kills).arg(kills);
   361             } else if (kindOfPoints == "!TIME") {
   361             } else if (kindOfPoints == "!TIME") {
   362                 //: Time in seconds
   362                 //: Time in seconds
   363                 killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'g', 3);
   363                 killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'f', 3);
   364             } else if (kindOfPoints.startsWith("!TIME") && kindOfPoints.length() == 6) {
   364             } else if (kindOfPoints.startsWith("!TIME") && kindOfPoints.length() == 6) {
   365                 int len = kindOfPoints.at(6).digitValue();
   365                 int len = kindOfPoints.at(6).digitValue();
   366                 if(len != -1)
   366                 if(len != -1)
   367                     killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'g', len);
   367                     killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'f', len);
   368                 else
   368                 else
   369                     qWarning("SendStat: siPointType received with !TIME and invalid number length!");
   369                     qWarning("SendStat: siPointType received with !TIME and invalid number length!");
   370             } else if (kindOfPoints == "!CRATES") {
   370             } else if (kindOfPoints == "!CRATES") {
   371                 killstring = PageGameStats::tr("(%1 crate(s))", "", kills).arg(kills);
   371                 killstring = PageGameStats::tr("(%1 crate(s))", "", kills).arg(kills);
   372             } else if (kindOfPoints == "!EMPTY") {
   372             } else if (kindOfPoints == "!EMPTY") {