|
QGIS API Documentation 3.99.0-Master (357b655ed83)
|
Base class QSortFilterProxyModel subclass for QgsProjectStoredObjectManagerModel. More...
#include <qgsprojectstoredobjectmanagermodel.h>

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 | |
| 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 | |
| virtual bool | filterAcceptsRowInternal (int sourceRow, const QModelIndex &sourceParent) const |
Returns true if the proxy accepts the matching source row. | |
Protected Attributes | |
| QString | mFilterString |
| Filter string. | |
Base class QSortFilterProxyModel subclass for QgsProjectStoredObjectManagerModel.
Supports sorting by object name and text based filtering against the object name.
Definition at line 173 of file qgsprojectstoredobjectmanagermodel.h.
|
explicit |
Constructor for QgsProjectStoredObjectManagerProxyModelBase.
Definition at line 405 of file qgsprojectstoredobjectmanagermodel.cpp.
|
override |
Definition at line 435 of file qgsprojectstoredobjectmanagermodel.cpp.
|
protectedvirtual |
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 in QgsLayoutManagerProxyModel, QgsProjectStoredObjectManagerProxyModel< T >, QgsProjectStoredObjectManagerProxyModel< QgsElevationProfile >, QgsProjectStoredObjectManagerProxyModel< QgsMasterLayoutInterface >, and QgsProjectStoredObjectManagerProxyModel< QgsSelectiveMaskingSourceSet >.
Definition at line 446 of file qgsprojectstoredobjectmanagermodel.cpp.
|
inline |
Returns the current filter string, if set.
Definition at line 191 of file qgsprojectstoredobjectmanagermodel.h.
|
override |
Definition at line 413 of file qgsprojectstoredobjectmanagermodel.cpp.
|
slot |
Sets a filter string, such that only layouts with names containing the specified string will be shown.
Definition at line 440 of file qgsprojectstoredobjectmanagermodel.cpp.
|
protected |
Filter string.
Definition at line 215 of file qgsprojectstoredobjectmanagermodel.h.