@@ -45,9 +45,9 void PieSliceLabel::updateGeometry() | |||
|
45 | 45 | QPointF parm2 = parm1; |
|
46 | 46 | textRect.moveBottomLeft(parm1); |
|
47 | 47 | if (m_armAngle < 180) { // arm swings the other way on the left side |
|
48 |
parm2 += QPointF( |
|
|
48 | parm2 += QPointF(textRect.width(), 0); | |
|
49 | 49 | } else { |
|
50 |
parm2 += QPointF(- |
|
|
50 | parm2 += QPointF(-textRect.width(),0); | |
|
51 | 51 | textRect.moveBottomLeft(parm2); |
|
52 | 52 | } |
|
53 | 53 | |
@@ -66,7 +66,7 void PieSliceLabel::updateGeometry() | |||
|
66 | 66 | m_textRect = textRect; |
|
67 | 67 | m_rect = path.boundingRect().united(m_textRect); |
|
68 | 68 | |
|
69 |
|
|
|
69 | qDebug() << "PieSliceLabel::updateGeometry" << m_text << m_armStartPoint << m_armLength << m_armAngle << m_textRect; | |
|
70 | 70 | } |
|
71 | 71 | |
|
72 | 72 | QTCOMMERCIALCHART_END_NAMESPACE |
General Comments 0
You need to be logged in to leave comments.
Login now