From dbd7de01b81cc4944d059926ba2e37a40f1a1edd Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Sun, 4 Jan 2026 20:09:16 -0300 Subject: [PATCH] Remove vertical lines in Overview Zones Tiles They were introduced by #4779, which replaced setAxisX which removes the previously existing default x-axis for the new one, with addAxis which doesn't remove anything. This change just remove the existing (default) x-axis before to add the new one to minimize the impact in the remaining code. --- src/Charts/OverviewItems.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Charts/OverviewItems.cpp b/src/Charts/OverviewItems.cpp index 57d9c749f..cdcdf5d1f 100644 --- a/src/Charts/OverviewItems.cpp +++ b/src/Charts/OverviewItems.cpp @@ -773,6 +773,13 @@ ZoneOverviewItem::configChanged(qint32) chart->createDefaultAxes(); // add x axis to chart and attach to the series + // previously removing default one to simulte setAxisX + QList horizontalAxes = chart->axes(Qt::Horizontal, barseries); + if (horizontalAxes.size() == 1) { + chart->removeAxis(horizontalAxes.first()); + } else { + qDebug() << "Expecting one horizontal axis: " << horizontalAxes.size(); + } chart->addAxis(barcategoryaxis, Qt::AlignBottom); barseries->attachAxis(barcategoryaxis); barcategoryaxis->setLinePen(axisPen);