|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Template class QSortFilterProxyModel subclass for QgsProjectStoredObjectManagerModel. More...
#include <qgsprojectstoredobjectmanagermodel.h>

Public Member Functions | |
| QgsProjectStoredObjectManagerProxyModel (QObject *parent=nullptr) | |
| Constructor for QgsProjectStoredObjectManagerProxyModel. | |
| Public Member Functions inherited from QgsProjectStoredObjectManagerProxyModelBase | |
| QgsProjectStoredObjectManagerProxyModelBase (QObject *parent=nullptr) | |
| Constructor for QgsProjectStoredObjectManagerProxyModelBase. | |
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
| QString | filterString () const |
| Returns the current filter string, if set. | |
| bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
Protected Member Functions | |
| bool | filterAcceptsRowInternal (int sourceRow, const QModelIndex &sourceParent) const override |
Returns true if the proxy accepts the matching source row. | |
Additional Inherited Members | |
| Public Slots inherited from QgsProjectStoredObjectManagerProxyModelBase | |
| void | setFilterString (const QString &filter) |
| Sets a filter string, such that only layouts with names containing the specified string will be shown. | |
| Protected Attributes inherited from QgsProjectStoredObjectManagerProxyModelBase | |
| QString | mFilterString |
| Filter string. | |
Template class QSortFilterProxyModel subclass for QgsProjectStoredObjectManagerModel.
Supports sorting by object name and text based filtering against the object name.
Definition at line 229 of file qgsprojectstoredobjectmanagermodel.h.
|
explicit |
Constructor for QgsProjectStoredObjectManagerProxyModel.
Definition at line 375 of file qgsprojectstoredobjectmanagermodel.cpp.
|
overrideprotectedvirtual |
Returns true if the proxy accepts the matching source row.
Handles filtering based on object name.
Subclasses should override this method instead of filterAcceptsRow().
Reimplemented from QgsProjectStoredObjectManagerProxyModelBase.
Definition at line 382 of file qgsprojectstoredobjectmanagermodel.cpp.