screens: add qDebug<< impl to QuickshellScreenInfo

This commit is contained in:
outfoxxed 2024-03-09 02:35:48 -08:00
parent fc93591cab
commit 15cd78e30c
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 25 additions and 0 deletions

View file

@ -1,9 +1,12 @@
#pragma once
#include <qdebug.h>
#include <qnamespace.h>
#include <qobject.h>
#include <qqmlinfo.h>
#include <qqmlintegration.h>
#include <qscreen.h>
#include <qtclasshelpermacros.h>
#include <qtmetamacros.h>
#include <qtypes.h>
@ -55,6 +58,8 @@ public:
[[nodiscard]] Qt::ScreenOrientation orientation() const;
[[nodiscard]] Qt::ScreenOrientation primaryOrientation() const;
[[nodiscard]] Q_INVOKABLE QString toString() const;
QScreen* screen;
private:
@ -71,3 +76,5 @@ signals:
private slots:
void screenDestroyed();
};
QDebug operator<<(QDebug debug, const QuickshellScreenInfo* screen);