Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
6a3e80d1
Commit
6a3e80d1
authored
Apr 29, 2021
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Apr 29, 2021
Browse files
Use Q_ENUM on enum class
Otherwise it can't be passed to QDebug at all
parent
3acd2b5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/server/outputdevice_interface.h
View file @
6a3e80d1
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment