diff --git a/src/effects/overview/expolayout.cpp b/src/effects/overview/expolayout.cpp index 7f6aca852d..2e9dfcff8e 100644 --- a/src/effects/overview/expolayout.cpp +++ b/src/effects/overview/expolayout.cpp @@ -304,12 +304,20 @@ void ExpoLayout::removeCell(ExpoCell *cell) polish(); } +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void ExpoLayout::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) +#else +void ExpoLayout::geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) +#endif { if (newGeometry.size() != oldGeometry.size()) { polish(); } +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) QQuickItem::geometryChanged(newGeometry, oldGeometry); +#else + QQuickItem::geometryChange(newGeometry, oldGeometry); +#endif } static int distance(const QPoint &a, const QPoint &b) diff --git a/src/effects/overview/expolayout.h b/src/effects/overview/expolayout.h index 9c00f3b6a0..9f60a0ac21 100644 --- a/src/effects/overview/expolayout.h +++ b/src/effects/overview/expolayout.h @@ -47,7 +47,11 @@ public: void setReady(); protected: +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; +#else + void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override; +#endif void updatePolish() override; Q_SIGNALS: