From d5e9c7529cd72f9f103dfc9015928180fcf82825 2012-11-30 11:47:25 From: Michal Klocek Date: 2012-11-30 11:47:25 Subject: [PATCH] Fixes even more missing layout update calls --- diff --git a/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp b/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp index 80604d9..c246031 100644 --- a/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp +++ b/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp @@ -95,6 +95,7 @@ void ChartBarCategoryAxisX::updateGeometry() void ChartBarCategoryAxisX::handleCategoriesChanged() { + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } diff --git a/src/axis/datetimeaxis/chartdatetimeaxisx.cpp b/src/axis/datetimeaxis/chartdatetimeaxisx.cpp index 47be5eb..a058ec9 100644 --- a/src/axis/datetimeaxis/chartdatetimeaxisx.cpp +++ b/src/axis/datetimeaxis/chartdatetimeaxisx.cpp @@ -70,12 +70,14 @@ void ChartDateTimeAxisX::updateGeometry() void ChartDateTimeAxisX::handleTickCountChanged(int tick) { Q_UNUSED(tick) + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } void ChartDateTimeAxisX::handleFormatChanged(const QString &format) { Q_UNUSED(format); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); }