@@ -840,10 +840,10 void QXYSeriesPrivate::drawSeriesPointLabels(QPainter *painter, const QVector<QP | |||||
840 | painter->setPen(QPen(m_pointLabelsColor)); |
|
840 | painter->setPen(QPen(m_pointLabelsColor)); | |
841 | QFontMetrics fm(painter->font()); |
|
841 | QFontMetrics fm(painter->font()); | |
842 |
|
842 | |||
843 |
for (int i(0); i < |
|
843 | for (int i(0); i < points.size(); i++) { | |
844 | QString pointLabel = m_pointLabelsFormat; |
|
844 | QString pointLabel = m_pointLabelsFormat; | |
845 |
pointLabel.replace(xPointTag, presenter()->numberToString( |
|
845 | pointLabel.replace(xPointTag, presenter()->numberToString(points.at(i).x())); | |
846 |
pointLabel.replace(yPointTag, presenter()->numberToString( |
|
846 | pointLabel.replace(yPointTag, presenter()->numberToString(points.at(i).y())); | |
847 |
|
847 | |||
848 | // Position text in relation to the point |
|
848 | // Position text in relation to the point | |
849 | int pointLabelWidth = fm.width(pointLabel); |
|
849 | int pointLabelWidth = fm.width(pointLabel); |
General Comments 0
You need to be logged in to leave comments.
Login now