QTfrontend/ui/page/pagegamestats.cpp
changeset 14742 123aaa2bf4b5
parent 14615 de34abf040ed
child 14842 5443e5e0faa3
equal deleted inserted replaced
14741:8563cc40fc1e 14742:123aaa2bf4b5
   220                 path.lineTo(t, hps[t]);
   220                 path.lineTo(t, hps[t]);
   221                 maxValue = qMax(maxValue, hps[t]);
   221                 maxValue = qMax(maxValue, hps[t]);
   222                 minValue = qMin(minValue, hps[t]);
   222                 minValue = qMin(minValue, hps[t]);
   223             }
   223             }
   224 
   224 
   225             QPen pen(c);
   225             // Draw clan health/score graph lines
       
   226             QColor col = QColor(c);
       
   227 
       
   228             // Special pen for very dark clan colors
       
   229             if (!(col.red() >= cInvertTextColorAt || col.green() >= cInvertTextColorAt || col.blue() >= cInvertTextColorAt))
       
   230             {
       
   231                 QPen pen_marker(QColor(255, 255, 255));
       
   232                 pen_marker.setWidth(3);
       
   233                 pen_marker.setStyle(Qt::DotLine);
       
   234                 pen_marker.setCosmetic(true);
       
   235                 m_scene->addPath(path, pen_marker);
       
   236             }
       
   237 
       
   238             // Regular pen
       
   239             QPen pen(col);
   226             pen.setWidth(2);
   240             pen.setWidth(2);
   227             pen.setCosmetic(true);
   241             pen.setCosmetic(true);
   228 
       
   229             m_scene->addPath(path, pen);
   242             m_scene->addPath(path, pen);
       
   243 
   230             ++i;
   244             ++i;
   231         }
   245         }
   232 
   246 
   233         graphic->setScene(m_scene.data());
   247         graphic->setScene(m_scene.data());
   234 
   248