QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgslayoutmanager.h>
Public Types | |
enum | Filter { FilterPrintLayouts = 1 << 1, FilterReports = 1 << 2 } |
Available filter flags for filtering the model. More... | |
Public Slots | |
void | setFilterString (const QString &filter) |
Sets a filter string, such that only layouts with names containing the specified string will be shown. More... | |
Public Member Functions | |
QgsLayoutManagerProxyModel (QObject *parent=nullptr) | |
Constructor for QgsLayoutManagerProxyModel. More... | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
QgsLayoutManagerProxyModel::Filters | filters () const |
Returns the current filters used for filtering available layouts. More... | |
QString | filterString () const |
Returns the current filter string, if set. More... | |
bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
void | setFilters (QgsLayoutManagerProxyModel::Filters filters) |
Sets the current filters used for filtering available layouts. More... | |
QSortFilterProxyModel subclass for QgsLayoutManagerModel
Definition at line 238 of file qgslayoutmanager.h.
Available filter flags for filtering the model.
Enumerator | |
---|---|
FilterPrintLayouts | Includes print layouts. |
FilterReports | Includes reports. |
Definition at line 245 of file qgslayoutmanager.h.
|
explicit |
Constructor for QgsLayoutManagerProxyModel.
Definition at line 527 of file qgslayoutmanager.cpp.
|
override |
Definition at line 547 of file qgslayoutmanager.cpp.
QgsLayoutManagerProxyModel::Filters QgsLayoutManagerProxyModel::filters | ( | ) | const |
Returns the current filters used for filtering available layouts.
Definition at line 573 of file qgslayoutmanager.cpp.
|
inline |
Returns the current filter string, if set.
Definition at line 280 of file qgslayoutmanager.h.
|
override |
Definition at line 535 of file qgslayoutmanager.cpp.
void QgsLayoutManagerProxyModel::setFilters | ( | QgsLayoutManagerProxyModel::Filters | filters | ) |
Sets the current filters used for filtering available layouts.
Definition at line 578 of file qgslayoutmanager.cpp.
|
slot |
Sets a filter string, such that only layouts with names containing the specified string will be shown.
Definition at line 584 of file qgslayoutmanager.cpp.