@@ -50,8 +50,7 QVector<qreal> ChartValueAxisX::calculateLayout() const | |||||
50 | const QRectF &gridRect = gridGeometry(); |
|
50 | const QRectF &gridRect = gridGeometry(); | |
51 | const qreal deltaX = gridRect.width() / (m_tickCount - 1); |
|
51 | const qreal deltaX = gridRect.width() / (m_tickCount - 1); | |
52 | for (int i = 0; i < m_tickCount; ++i) { |
|
52 | for (int i = 0; i < m_tickCount; ++i) { | |
53 |
|
|
53 | points[i] = i * deltaX + gridRect.left(); | |
54 | points[i] = x; |
|
|||
55 | } |
|
54 | } | |
56 | return points; |
|
55 | return points; | |
57 | } |
|
56 | } |
@@ -52,8 +52,7 QVector<qreal> ChartValueAxisY::calculateLayout() const | |||||
52 |
|
52 | |||
53 | const qreal deltaY = gridRect.height() / (m_tickCount - 1); |
|
53 | const qreal deltaY = gridRect.height() / (m_tickCount - 1); | |
54 | for (int i = 0; i < m_tickCount; ++i) { |
|
54 | for (int i = 0; i < m_tickCount; ++i) { | |
55 |
|
|
55 | points[i] = i * -deltaY + gridRect.bottom(); | |
56 | points[i] = y; |
|
|||
57 | } |
|
56 | } | |
58 |
|
57 | |||
59 | return points; |
|
58 | return points; |
General Comments 0
You need to be logged in to leave comments.
Login now