QTfrontend/ui/page/pagegamestats.cpp
changeset 9178 c0902317c823
parent 9177 d5e98b81e135
child 9998 736015b847e3
--- a/QTfrontend/ui/page/pagegamestats.cpp	Sun Jun 09 01:18:58 2013 +0300
+++ b/QTfrontend/ui/page/pagegamestats.cpp	Mon Jun 10 15:18:03 2013 +0300
@@ -40,6 +40,7 @@
 
 QLayout * PageGameStats::bodyLayoutDefinition()
 {
+	kindOfPoints = QString("");
 	defaultGraphTitle = true;	
     QGridLayout * pageLayout = new QGridLayout();
     pageLayout->setSpacing(20);
@@ -256,7 +257,11 @@
             }
             break;
         }
-
+		case 'p' :
+        {
+            kindOfPoints = info;
+            break;
+        }
         case 'P' :
         {
             int i = info.indexOf(' ');
@@ -293,7 +298,13 @@
             }
 
             QString message;
-            QString killstring = PageGameStats::tr("(%1 kill)", "", kills).arg(kills);
+            QString killstring;
+            if(kindOfPoints.compare("") == 0) {
+				killstring = PageGameStats::tr("(%1 kill)", "", kills).arg(kills);
+			} else {
+				killstring = PageGameStats::tr("(%1 %2)", "", kills).arg(kills).arg(kindOfPoints);
+				kindOfPoints = QString("");
+			}
 
             message = QString("<p><h2>%1 %2. <font color=\"%4\">%3</font> ").arg(image, QString::number(playerPosition), playername, clanColor.name()) + killstring + "</h2></p>";