summaryrefslogtreecommitdiffstats
path: root/src/compositor/compat/removed_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/compat/removed_api.cpp')
-rw-r--r--src/compositor/compat/removed_api.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/compositor/compat/removed_api.cpp b/src/compositor/compat/removed_api.cpp
new file mode 100644
index 000000000..9a4f7c6a7
--- /dev/null
+++ b/src/compositor/compat/removed_api.cpp
@@ -0,0 +1,32 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#define QT_WAYLANDCOMPOSITOR_BUILD_REMOVED_API
+
+#include "qtwaylandcompositorglobal.h"
+
+QT_USE_NAMESPACE
+
+#if QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6, 3)
+
+#include "qwaylandbufferref.h"
+
+bool QWaylandBufferRef::operator==(const QWaylandBufferRef &other)
+{
+ return std::as_const(*this) == other;
+}
+
+bool QWaylandBufferRef::operator!=(const QWaylandBufferRef &other)
+{
+ return std::as_const(*this) != other;
+}
+
+#endif // QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6, 3)
+
+#if QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6, 4)
+
+// #include "qotherheader.h"
+// // implement removed functions from qotherheader.h
+// order alphabetically
+
+#endif // QT_WAYLANDCOMPOSITOR_REMOVED_SINCE(6, 4)