@@ -107,7 +107,10 void PieSliceItem::updateGeometry() | |||||
107 | m_labelTextRect.moveBottomLeft(labelTextStart); |
|
107 | m_labelTextRect.moveBottomLeft(labelTextStart); | |
108 |
|
108 | |||
109 | // update bounding rect |
|
109 | // update bounding rect | |
|
110 | if (m_data.m_isLabelVisible) | |||
110 | m_boundingRect = m_slicePath.boundingRect().united(m_labelArmPath.boundingRect()).united(m_labelTextRect); |
|
111 | m_boundingRect = m_slicePath.boundingRect().united(m_labelArmPath.boundingRect()).united(m_labelTextRect); | |
|
112 | else | |||
|
113 | m_boundingRect = m_slicePath.boundingRect(); | |||
111 | } |
|
114 | } | |
112 |
|
115 | |||
113 | QPointF PieSliceItem::sliceCenter(QPointF point, qreal radius, QPieSlice *slice) |
|
116 | QPointF PieSliceItem::sliceCenter(QPointF point, qreal radius, QPieSlice *slice) |
General Comments 0
You need to be logged in to leave comments.
Login now