From 059b78337f20174157dc88f8eec7c3c9c0c64461 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 8 Jun 2021 22:22:39 +0200 Subject: [PATCH] Add Q_ENUM to enum classes --- src/abstract_wayland_output.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/abstract_wayland_output.h b/src/abstract_wayland_output.h index 82173e4190..ce95278b14 100644 --- a/src/abstract_wayland_output.h +++ b/src/abstract_wayland_output.h @@ -42,12 +42,14 @@ public: Flipped180, Flipped270 }; + Q_ENUM(Transform) enum class ModeFlag : uint { Current = 0x1, Preferred = 0x2, }; Q_DECLARE_FLAGS(ModeFlags, ModeFlag) + Q_ENUM(ModeFlag) struct Mode { @@ -63,6 +65,7 @@ public: Suspend, Off, }; + Q_ENUM(DpmsMode) enum class Capability : uint { Dpms = 0x1, @@ -79,6 +82,7 @@ public: Vertical_RGB, Vertical_BGR, }; + Q_ENUM(SubPixel) explicit AbstractWaylandOutput(QObject *parent = nullptr);