6#include <PhosphorShell/phosphorshell_export.h>
8#include <QAbstractListModel>
24class PHOSPHORSHELL_EXPORT
ScreenModel :
public QAbstractListModel
30 ScreenRole = Qt::UserRole + 1,
41 int rowCount(const QModelIndex& parent = {})
const override;
42 QVariant
data(
const QModelIndex& index,
int role)
const override;
46 void onScreensChanged();
47 void onPrimaryScreenChanged();
51 QList<QScreen*> m_screens;
Source-of-truth interface for the available QScreen set.
Definition IScreenProvider.h:62
Definition ScreenModel.h:25
QVariant data(const QModelIndex &index, int role) const override
Role
Definition ScreenModel.h:29
@ WidthRole
Definition ScreenModel.h:32
@ NameRole
Definition ScreenModel.h:31
@ IsPrimaryRole
Definition ScreenModel.h:34
@ HeightRole
Definition ScreenModel.h:33
QHash< int, QByteArray > roleNames() const override
Definition SurfaceAnimator.h:26
Definition Environment.h:11