My Project
|
Interface for a list model of MirSurfaces. More...
#include <lomiri/shell/application/MirSurfaceListInterface.h>
Public Types | |
enum | Roles { SurfaceRole = Qt::UserRole } |
The Roles supported by the model. More... | |
Public Member Functions | |
virtual Q_INVOKABLE MirSurfaceInterface * | get (int index)=0 |
Returns the surface at the specified index. More... | |
Properties | |
int | count |
Number of surfaces in this model. More... | |
lomiri::shell::application::MirSurfaceInterface * | first |
The first (index 0) surface in this model. More... | |
Interface for a list model of MirSurfaces.
The Roles supported by the model.
SurfaceRole - A MirSurfaceInterface.
|
pure virtual |
Returns the surface at the specified index.
|
read |
Number of surfaces in this model.
This is the same as rowCount, added in order to keep compatibility with QML ListModels.
|
read |
The first (index 0) surface in this model.
Will always match the result of get(0). But being a property, it's more appropriate for use in qml bindinds (JS expression gets reevaluated when it changes)