##// END OF EJS Templates
Adds magic number to fix some drawLine shape inaccuracy
Michal Klocek -
r1821:672f36c14539
parent child
Show More
@@ -83,7 +83,10 void LineChartItem::updateGeometry()
83 83
84 84 m_linePath=linePath;
85 85 QPainterPathStroker stroker;
86 stroker.setWidth(m_linePen.width());
86 stroker.setWidth(m_linePen.width()*1.42);
87 stroker.setJoinStyle(m_linePen.joinStyle());
88 stroker.setCapStyle(m_linePen.capStyle());
89 stroker.setMiterLimit(m_linePen.miterLimit());
87 90
88 91 prepareGeometryChange();
89 92
@@ -107,6 +110,7 void LineChartItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opt
107 110 Q_UNUSED(option)
108 111
109 112 painter->setPen(m_linePen);
113
110 114 painter->setBrush(m_linePen.color());
111 115 painter->setClipRect(clipRect());
112 116
General Comments 0
You need to be logged in to leave comments. Login now