From 7a74426e10d209f716114c14d658cc6086f9023a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 2 May 2020 17:59:37 -0700 Subject: Suppress warning about sizeChanged() being deprecated Change-Id: I99ab0f318b1c43b89888fffd160b5ed8661a7a56 (adapted from commit 45ae0527aed387ddc6c6e2af400006ae0a8ea2ec) Reviewed-by: Volker Hilsheimer --- src/compositor/compositor_api/qwaylandsurface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor/compositor_api/qwaylandsurface.cpp b/src/compositor/compositor_api/qwaylandsurface.cpp index 41a67812..d9ebac92 100644 --- a/src/compositor/compositor_api/qwaylandsurface.cpp +++ b/src/compositor/compositor_api/qwaylandsurface.cpp @@ -272,7 +272,10 @@ void QWaylandSurfacePrivate::surface_commit(Resource *) if (oldBufferSize != bufferSize) { emit q->bufferSizeChanged(); #if QT_DEPRECATED_SINCE(5, 13) +QT_WARNING_PUSH +QT_WARNING_DISABLE_DEPRECATED emit q->sizeChanged(); +QT_WARNING_POP #endif } -- cgit v1.2.1