##// END OF EJS Templates
fixed bug in category y axis
sauimone -
r1682:0b4da0006934
parent child
Show More
@@ -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(layout[i], m_rect.top(), layout[i], m_rect.bottom());
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