diff -r 65602f1ef0f8 -r f77bb02b669f QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Mon Jan 30 23:20:28 2012 +0100 +++ b/QTfrontend/ui/page/pagegamestats.cpp Mon Jan 30 17:32:18 2012 -0500 @@ -62,7 +62,7 @@ gbl->addWidget(labelGameStats); gb->setLayout(gbl); pageLayout->addWidget(gb, 1, 1, 1, 2); - + // graph graphic = new FitGraphicsView(gb); l = new QLabel(this); @@ -73,7 +73,7 @@ gbl->addWidget(graphic); graphic->scale(1.0, -1.0); graphic->setBackgroundBrush(QBrush(Qt::black)); - + labelGameWin = new QLabel(this); labelGameWin->setTextFormat(Qt::RichText); pageLayout->addWidget(labelGameWin, 0, 0, 1, 2); @@ -160,38 +160,45 @@ void PageGameStats::GameStats(char type, const QString & info) { - switch(type) { - case 'r' : { + switch(type) + { + case 'r' : + { labelGameWin->setText(QString("
" + PageGameStats::tr("The best shot award was won by %1 with %2 pts.").arg(info.mid(i + 1), info.left(i)) + "
" + PageGameStats::tr("The best killer is %1 with %2 kills in a turn.", "", num).arg(info.mid(i + 1), info.left(i)) + "
" + PageGameStats::tr("A total of %1 hedgehog(s) were killed during this round.", "", num).arg(num) + "
local team: " + info + "
"); QStringList infol = info.split(":"); HWTeam team(infol[0]); @@ -204,9 +211,10 @@ //team.SaveToFile(); // don't save yet } break; - } + } - case 'P' : { + case 'P' : + { int i = info.indexOf(' '); playerPosition++; QString color = info.left(i); @@ -227,17 +235,17 @@ switch (playerPosition) { case 1: - image = " " + PageGameStats::tr("%1 thought it's good to shoot his own hedgehogs with %2 pts.", "", num).arg(info.mid(i + 1)).arg(num) + "
" + PageGameStats::tr("%1 killed %2 of his own hedgehogs.", "", num).arg(info.mid(i + 1)).arg(num) + "
" + PageGameStats::tr("%1 was scared and skipped turn %2 times.", "", num).arg(info.mid(i + 1)).arg(num) + "