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