diff options
Diffstat (limited to 'src/charts/axis/valueaxis/chartvalueaxisy.cpp')
-rw-r--r-- | src/charts/axis/valueaxis/chartvalueaxisy.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/charts/axis/valueaxis/chartvalueaxisy.cpp b/src/charts/axis/valueaxis/chartvalueaxisy.cpp index 85f6bd8a..e143ea2e 100644 --- a/src/charts/axis/valueaxis/chartvalueaxisy.cpp +++ b/src/charts/axis/valueaxis/chartvalueaxisy.cpp @@ -32,6 +32,8 @@ ChartValueAxisY::ChartValueAxisY(QValueAxis *axis, QGraphicsItem *item) m_axis(axis) { QObject::connect(m_axis, SIGNAL(tickCountChanged(int)), this, SLOT(handleTickCountChanged(int))); + QObject::connect(m_axis, SIGNAL(minorTickCountChanged(int)), + this, SLOT(handleMinorTickCountChanged(int))); QObject::connect(m_axis, SIGNAL(labelFormatChanged(QString)), this, SLOT(handleLabelFormatChanged(QString))); } @@ -73,6 +75,14 @@ void ChartValueAxisY::handleTickCountChanged(int tick) if (presenter()) presenter()->layout()->invalidate(); } +void ChartValueAxisY::handleMinorTickCountChanged(int tick) +{ + Q_UNUSED(tick); + QGraphicsLayoutItem::updateGeometry(); + if (presenter()) + presenter()->layout()->invalidate(); +} + void ChartValueAxisY::handleLabelFormatChanged(const QString &format) { Q_UNUSED(format); |