From 8ae3b0aef85be924c0856458c081f06b0d592abf Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 15 Dec 2023 21:44:24 +0100 Subject: [PATCH] Qt6 check code as apps is qt6 only. --- src/qwaylandlayersurface.cpp | 2 -- src/qwaylandlayersurface_p.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index ed57f4a..520aa2d 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -100,7 +100,6 @@ void QWaylandLayerSurface::zwlr_layer_surface_v1_configure(uint32_t serial, uint } } -#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0) void QWaylandLayerSurface::attachPopup(QtWaylandClient::QWaylandShellSurface *popup) { std::any anyRole = popup->surfaceRole(); @@ -111,7 +110,6 @@ void QWaylandLayerSurface::attachPopup(QtWaylandClient::QWaylandShellSurface *po qCWarning(LAYERSHELLQT) << "Cannot attach popup of unknown type"; } } -#endif void QWaylandLayerSurface::applyConfigure() { diff --git a/src/qwaylandlayersurface_p.h b/src/qwaylandlayersurface_p.h index 4b5940c..9ccf819 100644 --- a/src/qwaylandlayersurface_p.h +++ b/src/qwaylandlayersurface_p.h @@ -32,9 +32,7 @@ public: { return m_configured; } -#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0) void attachPopup(QtWaylandClient::QWaylandShellSurface *popup) override; -#endif void setAnchor(uint32_t anchor); void setExclusiveZone(int32_t zone);