summaryrefslogtreecommitdiffstats
path: root/src/charts/axis/valueaxis/chartvalueaxisx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/axis/valueaxis/chartvalueaxisx.cpp')
-rw-r--r--src/charts/axis/valueaxis/chartvalueaxisx.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/charts/axis/valueaxis/chartvalueaxisx.cpp b/src/charts/axis/valueaxis/chartvalueaxisx.cpp
index 6492f91d..f72b9919 100644
--- a/src/charts/axis/valueaxis/chartvalueaxisx.cpp
+++ b/src/charts/axis/valueaxis/chartvalueaxisx.cpp
@@ -33,6 +33,8 @@ ChartValueAxisX::ChartValueAxisX(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)));
}
@@ -72,6 +74,14 @@ void ChartValueAxisX::handleTickCountChanged(int tick)
if(presenter()) presenter()->layout()->invalidate();
}
+void ChartValueAxisX::handleMinorTickCountChanged(int tick)
+{
+ Q_UNUSED(tick);
+ QGraphicsLayoutItem::updateGeometry();
+ if (presenter())
+ presenter()->layout()->invalidate();
+}
+
void ChartValueAxisX::handleLabelFormatChanged(const QString &format)
{
Q_UNUSED(format);