You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcutefish/screen/qt5/screen.h

30 lines
512 B
C++

#pragma once
#include <QObject>
class Qt5OutputModel;
class QScreen;
class Qt5Screen : public QObject
{
Q_OBJECT
Q_PROPERTY(Qt5OutputModel *outputModel READ outputModel NOTIFY outputModelChanged)
public:
explicit Qt5Screen(QObject *parent = nullptr);
Qt5OutputModel *outputModel() const;
Q_INVOKABLE void save();
private slots:
void refreshScreens();
void connectScreen(QScreen *screen);
signals:
void outputModelChanged();
private:
Qt5OutputModel *m_outputModel;
};