Qt6 check code as apps is qt6 only.

This commit is contained in:
Laurent Montel 2023-12-15 21:44:24 +01:00
parent 6f0bca5593
commit 8ae3b0aef8
2 changed files with 0 additions and 4 deletions

View file

@ -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) void QWaylandLayerSurface::attachPopup(QtWaylandClient::QWaylandShellSurface *popup)
{ {
std::any anyRole = popup->surfaceRole(); std::any anyRole = popup->surfaceRole();
@ -111,7 +110,6 @@ void QWaylandLayerSurface::attachPopup(QtWaylandClient::QWaylandShellSurface *po
qCWarning(LAYERSHELLQT) << "Cannot attach popup of unknown type"; qCWarning(LAYERSHELLQT) << "Cannot attach popup of unknown type";
} }
} }
#endif
void QWaylandLayerSurface::applyConfigure() void QWaylandLayerSurface::applyConfigure()
{ {

View file

@ -32,9 +32,7 @@ public:
{ {
return m_configured; return m_configured;
} }
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
void attachPopup(QtWaylandClient::QWaylandShellSurface *popup) override; void attachPopup(QtWaylandClient::QWaylandShellSurface *popup) override;
#endif
void setAnchor(uint32_t anchor); void setAnchor(uint32_t anchor);
void setExclusiveZone(int32_t zone); void setExclusiveZone(int32_t zone);