QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Public Types | Public Slots | Public Member Functions | List of all members
QgsLayoutManagerProxyModel Class Reference

QSortFilterProxyModel subclass for QgsLayoutManagerModel. More...

#include <qgslayoutmanager.h>

Inheritance diagram for QgsLayoutManagerProxyModel:
Inheritance graph
[legend]

Public Types

enum  Filter { FilterPrintLayouts = 1 << 1 , FilterReports = 1 << 2 }
 Available filter flags for filtering the model. More...
 
typedef QFlags< FilterFilters
 

Public Slots

void setFilterString (const QString &filter)
 Sets a filter string, such that only layouts with names containing the specified string will be shown.
 

Public Member Functions

 QgsLayoutManagerProxyModel (QObject *parent=nullptr)
 Constructor for QgsLayoutManagerProxyModel.
 
bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
 
QgsLayoutManagerProxyModel::Filters filters () const
 Returns the current filters used for filtering available layouts.
 
QString filterString () const
 Returns the current filter string, if set.
 
bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
 
void setFilters (QgsLayoutManagerProxyModel::Filters filters)
 Sets the current filters used for filtering available layouts.
 

Detailed Description

QSortFilterProxyModel subclass for QgsLayoutManagerModel.

Since
QGIS 3.8

Definition at line 246 of file qgslayoutmanager.h.

Member Typedef Documentation

◆ Filters

Definition at line 258 of file qgslayoutmanager.h.

Member Enumeration Documentation

◆ Filter

Available filter flags for filtering the model.

Enumerator
FilterPrintLayouts 

Includes print layouts.

FilterReports 

Includes reports.

Definition at line 253 of file qgslayoutmanager.h.

Constructor & Destructor Documentation

◆ QgsLayoutManagerProxyModel()

QgsLayoutManagerProxyModel::QgsLayoutManagerProxyModel ( QObject *  parent = nullptr)
explicit

Constructor for QgsLayoutManagerProxyModel.

Definition at line 540 of file qgslayoutmanager.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool QgsLayoutManagerProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
override

Definition at line 560 of file qgslayoutmanager.cpp.

◆ filters()

QgsLayoutManagerProxyModel::Filters QgsLayoutManagerProxyModel::filters ( ) const

Returns the current filters used for filtering available layouts.

See also
setFilters()

Definition at line 586 of file qgslayoutmanager.cpp.

◆ filterString()

QString QgsLayoutManagerProxyModel::filterString ( ) const
inline

Returns the current filter string, if set.

See also
setFilterString()
Since
QGIS 3.12

Definition at line 288 of file qgslayoutmanager.h.

◆ lessThan()

bool QgsLayoutManagerProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
override

Definition at line 548 of file qgslayoutmanager.cpp.

◆ setFilters()

void QgsLayoutManagerProxyModel::setFilters ( QgsLayoutManagerProxyModel::Filters  filters)

Sets the current filters used for filtering available layouts.

See also
filters()

Definition at line 591 of file qgslayoutmanager.cpp.

◆ setFilterString

void QgsLayoutManagerProxyModel::setFilterString ( const QString &  filter)
slot

Sets a filter string, such that only layouts with names containing the specified string will be shown.

See also
filterString()
Since
QGIS 3.12

Definition at line 597 of file qgslayoutmanager.cpp.


The documentation for this class was generated from the following files: