From 6a3e80d11d11581f1458fcdb32d52037f125427b Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 29 Apr 2021 01:43:00 +0200 Subject: [PATCH] Use Q_ENUM on enum class Otherwise it can't be passed to QDebug at all --- src/wayland/server/outputdevice_interface.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wayland/server/outputdevice_interface.h b/src/wayland/server/outputdevice_interface.h index bbec0ceac7..0a811dbc48 100644 --- a/src/wayland/server/outputdevice_interface.h +++ b/src/wayland/server/outputdevice_interface.h @@ -54,6 +54,7 @@ public: VerticalRGB, VerticalBGR, }; + Q_ENUM(SubPixel) enum class Transform { Normal, Rotated90, @@ -64,14 +65,17 @@ public: Flipped180, Flipped270, }; + Q_ENUM(Transform) enum class Enablement { Disabled = 0, Enabled = 1, }; + Q_ENUM(Enablement) enum class ModeFlag { Current = 1, Preferred = 2, }; + Q_ENUM(ModeFlag) Q_DECLARE_FLAGS(ModeFlags, ModeFlag) struct Mode { QSize size = QSize(); @@ -87,6 +91,7 @@ public: enum class Capability { Overscan = 0x1, }; + Q_ENUM(Capability) Q_DECLARE_FLAGS(Capabilities, Capability) explicit OutputDeviceInterface(Display *display, QObject *parent = nullptr);