@@ -296,7 +296,7 void AxisItem::setLayout(QVector<qreal>& layout) | |||||
296 | labelItem->setPos(m_rect.left() - labelItem->boundingRect().width() - label_padding , layout[i]-center.y()); |
|
296 | labelItem->setPos(m_rect.left() - labelItem->boundingRect().width() - label_padding , layout[i]-center.y()); | |
297 | if((i+1)%2 && i>1) { |
|
297 | if((i+1)%2 && i>1) { | |
298 | QGraphicsRectItem *rectItem = static_cast<QGraphicsRectItem*>(shades.at(i/2-1)); |
|
298 | QGraphicsRectItem *rectItem = static_cast<QGraphicsRectItem*>(shades.at(i/2-1)); | |
299 |
rectItem->setRect(m_rect.left(),layout[i |
|
299 | rectItem->setRect(m_rect.left(),layout[i],m_rect.width(),layout[i-1]-layout[i]); | |
300 | } |
|
300 | } | |
301 | lineItem = static_cast<QGraphicsLineItem*>(axis.at(i+1)); |
|
301 | lineItem = static_cast<QGraphicsLineItem*>(axis.at(i+1)); | |
302 | lineItem->setLine(m_rect.left()-5,layout[i],m_rect.left(),layout[i]); |
|
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