Add Q_ENUM to enum classes
This commit is contained in:
parent
09f99df1a3
commit
059b78337f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue