@@ -113,6 +113,7 void BoxWhiskers::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio | |||
|
113 | 113 | Q_UNUSED(option) |
|
114 | 114 | Q_UNUSED(widget) |
|
115 | 115 | |
|
116 | painter->save(); | |
|
116 | 117 | painter->setBrush(m_brush); |
|
117 | 118 | painter->setClipRect(parentItem()->boundingRect()); |
|
118 | 119 | painter->setPen(m_pen); |
@@ -124,6 +125,7 void BoxWhiskers::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio | |||
|
124 | 125 | qreal halfLine = m_pen.widthF() / 2.0; |
|
125 | 126 | painter->drawLine(QLineF(m_geometryLeft - halfLine, m_geometryMedian, |
|
126 | 127 | m_geometryRight + halfLine, m_geometryMedian)); |
|
128 | painter->restore(); | |
|
127 | 129 | } |
|
128 | 130 | |
|
129 | 131 | void BoxWhiskers::updateGeometry(AbstractDomain *domain) |
General Comments 0
You need to be logged in to leave comments.
Login now