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