QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
QSortFilterProxyModel subclass for QgsLayoutManagerModel. More...
#include <qgslayoutmanager.h>
Public Types | |
enum | Filter { FilterPrintLayouts = 1 << 1 , FilterReports = 1 << 2 } |
Available filter flags for filtering the model. More... | |
typedef QFlags< Filter > | Filters |
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. | |
QSortFilterProxyModel subclass for QgsLayoutManagerModel.
Definition at line 246 of file qgslayoutmanager.h.
typedef QFlags< Filter > QgsLayoutManagerProxyModel::Filters |
Definition at line 258 of file qgslayoutmanager.h.
Available filter flags for filtering the model.
Enumerator | |
---|---|
FilterPrintLayouts | Includes print layouts. |
FilterReports | Includes reports. |
Definition at line 253 of file qgslayoutmanager.h.
|
explicit |
Constructor for QgsLayoutManagerProxyModel.
Definition at line 540 of file qgslayoutmanager.cpp.
|
override |
Definition at line 560 of file qgslayoutmanager.cpp.
QgsLayoutManagerProxyModel::Filters QgsLayoutManagerProxyModel::filters | ( | ) | const |
Returns the current filters used for filtering available layouts.
Definition at line 586 of file qgslayoutmanager.cpp.
|
inline |
Returns the current filter string, if set.
Definition at line 288 of file qgslayoutmanager.h.
|
override |
Definition at line 548 of file qgslayoutmanager.cpp.
void QgsLayoutManagerProxyModel::setFilters | ( | QgsLayoutManagerProxyModel::Filters | filters | ) |
Sets the current filters used for filtering available layouts.
Definition at line 591 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 597 of file qgslayoutmanager.cpp.