QTfrontend/ui/page/pagegamestats.cpp
changeset 13713 3264a26bbf8b
parent 13236 6193503c4727
child 13762 f0cb47f0bfaf
equal deleted inserted replaced
13712:043f694d25d9 13713:3264a26bbf8b
   297             labelGraphTitle->setText("<br><h1><img src=\":/res/StatsR.png\"> " + info + "</h1>");
   297             labelGraphTitle->setText("<br><h1><img src=\":/res/StatsR.png\"> " + info + "</h1>");
   298             break;
   298             break;
   299         }
   299         }
   300         case 'T':   // local team stats
   300         case 'T':   // local team stats
   301         {
   301         {
   302             //AddStatText("<p>local team: " + info + "</p>");
   302             // unused
   303             QStringList infol = info.split(":");
       
   304             HWTeam team(infol[0]);
       
   305             if(team.fileExists()) // do some better test to avoid influence from scripted/predefined teams?
       
   306             {
       
   307                 team.loadFromFile();
       
   308                 team.incRounds();
       
   309                 if(infol[1].toInt() > 0) // might require some better test for winning condition (or changed flag) ... WIP!
       
   310                     team.incWins(); // should draws count as wins?
       
   311                 //team.SaveToFile(); // don't save yet
       
   312             }
       
   313             break;
   303             break;
   314         }
   304         }
   315         case 'p' :
   305         case 'p' :
   316         {
   306         {
   317             kindOfPoints = info;
   307             kindOfPoints = info;