summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-05-02 17:59:37 -0700
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-27 20:25:36 +0000
commit7a74426e10d209f716114c14d658cc6086f9023a (patch)
tree64dc21d6b747d86520cec84ed7c56f1571b99c85
parentb9c33b13a0cda7c23b4cb129125cef09db5e0c82 (diff)
downloadqtwayland-7a74426e10d209f716114c14d658cc6086f9023a.tar.gz
Suppress warning about sizeChanged() being deprecated
Change-Id: I99ab0f318b1c43b89888fffd160b5ed8661a7a56 (adapted from commit 45ae0527aed387ddc6c6e2af400006ae0a8ea2ec) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/compositor/compositor_api/qwaylandsurface.cpp3
1 files changed, 3 insertions, 0 deletions
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
}