QTfrontend/ui/page/pagegamestats.cpp
changeset 15071 dc236bcd7309
parent 14950 ef3352839616
child 15278 16f389fcd462
equal deleted inserted replaced
15070:57f7d89067ef 15071:dc236bcd7309
   202         /* There must be at least 2 data points for any clan,
   202         /* There must be at least 2 data points for any clan,
   203            otherwise there's not much to look at. ;-) */
   203            otherwise there's not much to look at. ;-) */
   204         if(maxDataPoints < 2) {
   204         if(maxDataPoints < 2) {
   205             labelGraphTitle->hide();
   205             labelGraphTitle->hide();
   206             graphic->hide();
   206             graphic->hide();
       
   207             applySpacing();
   207             return;
   208             return;
   208         }
   209         }
   209 
   210 
   210         QMap<qint32, QVector<qint32> >::const_iterator i = healthPoints.constBegin();
   211         QMap<qint32, QVector<qint32> >::const_iterator i = healthPoints.constBegin();
   211         while (i != healthPoints.constEnd())
   212         while (i != healthPoints.constEnd())
   273 
   274 
   274         graphic->show();
   275         graphic->show();
   275         labelGraphTitle->show();
   276         labelGraphTitle->show();
   276         gbDetails->show();
   277         gbDetails->show();
   277     }
   278     }
       
   279     applySpacing();
       
   280 }
       
   281 
       
   282 void PageGameStats::applySpacing()
       
   283 {
   278     if (!labelGameStats->isHidden())
   284     if (!labelGameStats->isHidden())
   279     {
   285     {
   280         labelGraphTitle->setText("<br>" + labelGraphTitle->text());
   286         labelGraphTitle->setText("<br>" + labelGraphTitle->text());
   281     }
   287     }
   282     if ((!gbDetails->isHidden()) && (!gbRanks->isHidden()))
   288     if ((!gbDetails->isHidden()) && (!gbRanks->isHidden()))