##// END OF EJS Templates
Bugfix y shades drawn upsidedown
Michal Klocek -
r578:cfd6dff120b3
parent child
Show More
@@ -296,7 +296,7 void AxisItem::setLayout(QVector<qreal>& layout)
296 296 labelItem->setPos(m_rect.left() - labelItem->boundingRect().width() - label_padding , layout[i]-center.y());
297 297 if((i+1)%2 && i>1) {
298 298 QGraphicsRectItem *rectItem = static_cast<QGraphicsRectItem*>(shades.at(i/2-1));
299 rectItem->setRect(m_rect.left(),layout[i-1],m_rect.width(),layout[i-1]-layout[i]);
299 rectItem->setRect(m_rect.left(),layout[i],m_rect.width(),layout[i-1]-layout[i]);
300 300 }
301 301 lineItem = static_cast<QGraphicsLineItem*>(axis.at(i+1));
302 302 lineItem->setLine(m_rect.left()-5,layout[i],m_rect.left(),layout[i]);
General Comments 0
You need to be logged in to leave comments. Login now