summaryrefslogtreecommitdiff
path: root/src/compositor/global/qtwaylandcompositorglobal_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-01-03 18:56:09 +0100
committerUlf Hermann <ulf.hermann@qt.io>2022-02-05 07:25:19 +0100
commitdb98b0d52b1ebd388bf9fc0ed2b1fefd01515927 (patch)
tree9ee34f16582b614dd261de0d883de6f18a79fedb /src/compositor/global/qtwaylandcompositorglobal_p.h
parent88bc19d0f7eb04d43cef6c5be0e0e31ad4ecf8fc (diff)
downloadqtwayland-db98b0d52b1ebd388bf9fc0ed2b1fefd01515927.tar.gz
Adapt to moving of type registrations into the Qt namespace
... and make the type registration function private. As we already have a private global header, let's use it. The public global header should not have the "We mean it" warning either. Change-Id: If4424652528c7886ce56e676d633aa3968f3772b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/compositor/global/qtwaylandcompositorglobal_p.h')
-rw-r--r--src/compositor/global/qtwaylandcompositorglobal_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compositor/global/qtwaylandcompositorglobal_p.h b/src/compositor/global/qtwaylandcompositorglobal_p.h
index 102e738e..aa7784bd 100644
--- a/src/compositor/global/qtwaylandcompositorglobal_p.h
+++ b/src/compositor/global/qtwaylandcompositorglobal_p.h
@@ -46,5 +46,13 @@
#include <QtGui/private/qtguiglobal_p.h>
#include <QtWaylandCompositor/private/qtwaylandcompositor-config_p.h>
+QT_BEGIN_NAMESPACE
+
+#if QT_CONFIG(wayland_compositor_quick)
+void Q_WAYLAND_COMPOSITOR_EXPORT qml_register_types_QtWayland_Compositor();
+#endif
+
+QT_END_NAMESPACE
+
#endif // QWAYLANDCOMPOSITORGLOBAL_P_H