diff --git a/src/axis/logvalueaxis/chartlogvalueaxisx.cpp b/src/axis/logvalueaxis/chartlogvalueaxisx.cpp index c6390f1..376884f 100644 --- a/src/axis/logvalueaxis/chartlogvalueaxisx.cpp +++ b/src/axis/logvalueaxis/chartlogvalueaxisx.cpp @@ -25,6 +25,7 @@ #include #include #include +#include QTCOMMERCIALCHART_BEGIN_NAMESPACE @@ -72,12 +73,14 @@ void ChartLogValueAxisX::updateGeometry() void ChartLogValueAxisX::handleBaseChanged(qreal base) { Q_UNUSED(base); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } void ChartLogValueAxisX::handleLabelFormatChanged(const QString &format) { Q_UNUSED(format); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } diff --git a/src/axis/logvalueaxis/chartlogvalueaxisy.cpp b/src/axis/logvalueaxis/chartlogvalueaxisy.cpp index c93a9e5..b3072fd 100644 --- a/src/axis/logvalueaxis/chartlogvalueaxisy.cpp +++ b/src/axis/logvalueaxis/chartlogvalueaxisy.cpp @@ -72,12 +72,14 @@ void ChartLogValueAxisY::updateGeometry() void ChartLogValueAxisY::handleBaseChanged(qreal base) { Q_UNUSED(base); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } void ChartLogValueAxisY::handleLabelFormatChanged(const QString &format) { Q_UNUSED(format); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } diff --git a/src/axis/logvalueaxis/qlogvalueaxis.cpp b/src/axis/logvalueaxis/qlogvalueaxis.cpp index e6bc569..332830c 100644 --- a/src/axis/logvalueaxis/qlogvalueaxis.cpp +++ b/src/axis/logvalueaxis/qlogvalueaxis.cpp @@ -140,7 +140,7 @@ qreal QLogValueAxis::max() const If min is greater than max then this function returns without making any changes. */ void QLogValueAxis::setRange(qreal min, qreal max) -{ +{ Q_D(QLogValueAxis); bool changed = false; @@ -275,8 +275,8 @@ void QLogValueAxisPrivate::setRange(qreal min, qreal max) } if (changed) { - emit q->rangeChanged(min, max); emit rangeChanged(min,max); + emit q->rangeChanged(min, max); } } } diff --git a/src/axis/valueaxis/chartvalueaxisx.cpp b/src/axis/valueaxis/chartvalueaxisx.cpp index 5cff909..8de1878 100644 --- a/src/axis/valueaxis/chartvalueaxisx.cpp +++ b/src/axis/valueaxis/chartvalueaxisx.cpp @@ -72,12 +72,14 @@ void ChartValueAxisX::updateGeometry() void ChartValueAxisX::handleTickCountChanged(int tick) { Q_UNUSED(tick); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } void ChartValueAxisX::handleLabelFormatChanged(const QString &format) { Q_UNUSED(format); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } diff --git a/src/axis/valueaxis/chartvalueaxisy.cpp b/src/axis/valueaxis/chartvalueaxisy.cpp index 4a3f150..66a3bc8 100644 --- a/src/axis/valueaxis/chartvalueaxisy.cpp +++ b/src/axis/valueaxis/chartvalueaxisy.cpp @@ -73,12 +73,14 @@ void ChartValueAxisY::updateGeometry() void ChartValueAxisY::handleTickCountChanged(int tick) { Q_UNUSED(tick); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } void ChartValueAxisY::handleLabelFormatChanged(const QString &format) { Q_UNUSED(format); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); }