|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
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 172 of file qgsprojectstoredobjectmanagermodel.h.
|
explicit |
Constructor for QgsProjectStoredObjectManagerProxyModelBase.
Definition at line 334 of file qgsprojectstoredobjectmanagermodel.cpp.
|
override |
Definition at line 354 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 >, and QgsProjectStoredObjectManagerProxyModel< QgsMasterLayoutInterface >.
Definition at line 365 of file qgsprojectstoredobjectmanagermodel.cpp.
|
inline |
Returns the current filter string, if set.
Definition at line 190 of file qgsprojectstoredobjectmanagermodel.h.
|
override |
Definition at line 342 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 359 of file qgsprojectstoredobjectmanagermodel.cpp.
|
protected |
Filter string.
Definition at line 214 of file qgsprojectstoredobjectmanagermodel.h.