6#include <PhosphorShell/phosphorshell_export.h>
10#include <QAbstractListModel>
62 [[nodiscard]]
int rowCount(const QModelIndex& parent = {})
const override;
63 [[nodiscard]] QVariant
data(
const QModelIndex& index,
int role)
const override;
64 [[nodiscard]] QHash<int, QByteArray>
roleNames()
const override;
71 QPointer<PhosphorWayland::ForeignToplevelManager> m_manager;
75 QList<QPointer<PhosphorWayland::ForeignToplevel>> m_rows;
126 Q_PROPERTY(QAbstractListModel*
model READ
model CONSTANT)
127 Q_PROPERTY(
bool supported READ
isSupported CONSTANT)
147 [[nodiscard]] QList<PhosphorWayland::ForeignToplevel*>
toplevels()
const;
148 [[nodiscard]] QAbstractListModel*
model()
const;
164 void recomputeActive();
182 QPointer<PhosphorWayland::ForeignToplevel> m_active;
QAbstractListModel view of the live toplevel set.
Definition Toplevels.h:50
ToplevelListModel(PhosphorWayland::ForeignToplevelManager *manager, QObject *parent=nullptr)
QVariant data(const QModelIndex &index, int role) const override
Role
Definition Toplevels.h:54
@ ToplevelRole
Definition Toplevels.h:55
int rowCount(const QModelIndex &parent={}) const override
QHash< int, QByteArray > roleNames() const override
Toplevels(QObject *parent=nullptr)
Snapshot list of currently-live toplevels.
static Toplevels * create(QQmlEngine *engine, QJSEngine *scriptEngine)
QML-singleton factory hook.
QAbstractListModel * model() const
QList< PhosphorWayland::ForeignToplevel * > toplevels() const
void activeToplevelChanged()
PhosphorWayland::ForeignToplevel * activeToplevel() const
Client-side wrapper around zwlr_foreign_toplevel_manager_v1.
Definition ForeignToplevel.h:44
A single toplevel window owned by some other Wayland client.
Definition ForeignToplevel.h:91
Definition Environment.h:11
Definition BackgroundEffect.h:15