diff options
-rw-r--r-- | src/client/qwaylanddisplay.cpp | 2 | ||||
-rw-r--r-- | src/client/qwaylanddisplay_p.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp index abb08452..a9fff410 100644 --- a/src/client/qwaylanddisplay.cpp +++ b/src/client/qwaylanddisplay.cpp @@ -79,6 +79,8 @@ QT_BEGIN_NAMESPACE namespace QtWaylandClient { +Q_LOGGING_CATEGORY(lcQpaWayland, "qt.qpa.wayland"); // for general (uncategorized) Wayland platform logging + struct wl_surface *QWaylandDisplay::createSurface(void *handle) { struct wl_surface *surface = mCompositor.create_surface(); diff --git a/src/client/qwaylanddisplay_p.h b/src/client/qwaylanddisplay_p.h index bc4af7a5..a65ed320 100644 --- a/src/client/qwaylanddisplay_p.h +++ b/src/client/qwaylanddisplay_p.h @@ -57,6 +57,7 @@ #include <QtCore/QVector> #include <QtCore/QWaitCondition> +#include <QtCore/QLoggingCategory> #include <wayland-client.h> @@ -83,6 +84,8 @@ namespace QtWayland { namespace QtWaylandClient { +Q_DECLARE_LOGGING_CATEGORY(lcQpaWayland); + class QWaylandInputDevice; class QWaylandBuffer; class QWaylandScreen; |