@@ -91,6 +91,7 void PieSliceItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* /*op | |||||
91 | }else if (m_data.m_labelPosition == QPieSlice::LabelOutside) { |
|
91 | }else if (m_data.m_labelPosition == QPieSlice::LabelOutside) { | |
92 | painter->setClipRect(parentItem()->boundingRect()); |
|
92 | painter->setClipRect(parentItem()->boundingRect()); | |
93 | painter->strokePath(m_labelArmPath, m_data.m_labelBrush.color()); |
|
93 | painter->strokePath(m_labelArmPath, m_data.m_labelBrush.color()); | |
|
94 | painter->drawText(m_labelTextRect, Qt::AlignCenter, m_data.m_labelText); | |||
94 | } else { // QPieSlice::LabelInside |
|
95 | } else { // QPieSlice::LabelInside | |
95 | painter->setClipPath(m_slicePath); |
|
96 | painter->setClipPath(m_slicePath); | |
96 | painter->drawText(m_labelTextRect, Qt::AlignCenter, m_data.m_labelText); |
|
97 | painter->drawText(m_labelTextRect, Qt::AlignCenter, m_data.m_labelText); |
General Comments 0
You need to be logged in to leave comments.
Login now