Class QfPrintLayoutListModel
ClassList > QfPrintLayoutListModel
Inherits the following classes: QAbstractListModel
Public Properties
| Type | Name |
|---|---|
| property QgsVectorLayer * | atlasCoverageLayer |
| property QgsProject * | project |
Public Signals
| Type | Name |
|---|---|
| signal void | atlasCoverageLayerChanged |
| signal void | projectChanged |
Public Functions
| Type | Name |
|---|---|
| QfPrintLayoutListModel (QObject * parent=nullptr) |
|
| QgsVectorLayer * | atlasCoverageLayer () const Returns the vector layer used to filter layouts to match atlas coverage layer. |
| QVariant | data (const QModelIndex & index, int role) override const |
| QgsProject * | project () const Returns the current project from which layouts are retrieved. |
| Q_INVOKABLE void | reloadModel () triggered when set another project |
| QHash< int, QByteArray > | roleNames () override const |
| int | rowCount (const QModelIndex & parent) override const |
| void | setAtlasCoverageLayer (QgsVectorLayer * layer) Sets the vector layer used to filter layouts to match atlas coverage layer. |
| void | setProject (QgsProject * project) Sets the project to be used to retrieve layouts. |
| Q_INVOKABLE const QString | titleAt (int row) const |
Public Properties Documentation
property atlasCoverageLayer [1/2]
QgsVectorLayer * QfPrintLayoutListModel::atlasCoverageLayer;
property project [1/2]
QgsProject * QfPrintLayoutListModel::project;
Public Signals Documentation
signal atlasCoverageLayerChanged
void QfPrintLayoutListModel::atlasCoverageLayerChanged;
signal projectChanged
void QfPrintLayoutListModel::projectChanged;
Public Functions Documentation
function QfPrintLayoutListModel
explicit QfPrintLayoutListModel::QfPrintLayoutListModel (
QObject * parent=nullptr
)
function atlasCoverageLayer [2/2]
Returns the vector layer used to filter layouts to match atlas coverage layer.
QgsVectorLayer * QfPrintLayoutListModel::atlasCoverageLayer () const
function data
QVariant QfPrintLayoutListModel::data (
const QModelIndex & index,
int role
) override const
function project [2/2]
Returns the current project from which layouts are retrieved.
QgsProject * QfPrintLayoutListModel::project () const
function reloadModel
triggered when set another project
Q_INVOKABLE void QfPrintLayoutListModel::reloadModel ()
function roleNames
QHash< int, QByteArray > QfPrintLayoutListModel::roleNames () override const
function rowCount
int QfPrintLayoutListModel::rowCount (
const QModelIndex & parent
) override const
function setAtlasCoverageLayer
Sets the vector layer used to filter layouts to match atlas coverage layer.
void QfPrintLayoutListModel::setAtlasCoverageLayer (
QgsVectorLayer * layer
)
function setProject
Sets the project to be used to retrieve layouts.
void QfPrintLayoutListModel::setProject (
QgsProject * project
)
function titleAt
Q_INVOKABLE const QString QfPrintLayoutListModel::titleAt (
int row
) const
The documentation for this class was generated from the following file src/gui/qfprintlayoutlistmodel.h