Commit 01cd2934 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Include rotation in the debug output

parent cad5bd70
......@@ -700,6 +700,7 @@ QDebug operator<<(QDebug dbg, const KScreen::OutputPtr &output)
<< "pos:" << output->pos() << "res:" << output->size()
<< "modeId:" << output->currentModeId()
<< "scale:" << output->scale()
<< "rotation:" << output->rotation()
<< "clone:" << (output->clones().isEmpty() ? "no" : "yes")
<< "followPreferredMode:" << output->followPreferredMode()
<< ")";
......
......@@ -40,8 +40,6 @@ class KSCREEN_EXPORT Output : public QObject
Q_OBJECT
public:
Q_ENUMS(Rotation)
Q_ENUMS(Type)
Q_PROPERTY(int id READ id CONSTANT)
Q_PROPERTY(QString name READ name WRITE setName NOTIFY outputChanged)
Q_PROPERTY(Type type READ type WRITE setType NOTIFY outputChanged)
......@@ -83,6 +81,7 @@ class KSCREEN_EXPORT Output : public QObject
TVC4,
DisplayPort
};
Q_ENUM(Type)
enum Rotation {
None = 1,
......@@ -90,6 +89,7 @@ class KSCREEN_EXPORT Output : public QObject
Inverted = 4,
Right = 8
};
Q_ENUM(Rotation)
explicit Output();
~Output() override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment