@@ -81,7 +81,7 void ChartCategoriesAxisY::updateGeometry() | |||||
81 |
|
81 | |||
82 | for (int i = 0; i < layout.size(); ++i) { |
|
82 | for (int i = 0; i < layout.size(); ++i) { | |
83 | QGraphicsLineItem *lineItem = static_cast<QGraphicsLineItem*>(lines.at(i)); |
|
83 | QGraphicsLineItem *lineItem = static_cast<QGraphicsLineItem*>(lines.at(i)); | |
84 |
lineItem->setLine( |
|
84 | lineItem->setLine(m_rect.left() , layout[i], m_rect.right(), layout[i]); | |
85 | QGraphicsSimpleTextItem *labelItem = static_cast<QGraphicsSimpleTextItem*>(labels.at(i)); |
|
85 | QGraphicsSimpleTextItem *labelItem = static_cast<QGraphicsSimpleTextItem*>(labels.at(i)); | |
86 | if(i>=1){ |
|
86 | if(i>=1){ | |
87 | labelItem->setText(ticksList.at(i-1)); |
|
87 | labelItem->setText(ticksList.at(i-1)); |
General Comments 0
You need to be logged in to leave comments.
Login now