|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
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 165 of file qgsprojectstoredobjectmanagermodel.h.
|
explicit |
Constructor for QgsProjectStoredObjectManagerProxyModelBase.
Definition at line 384 of file qgsprojectstoredobjectmanagermodel.cpp.
|
override |
Definition at line 414 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 425 of file qgsprojectstoredobjectmanagermodel.cpp.
|
inline |
Returns the current filter string, if set.
Definition at line 182 of file qgsprojectstoredobjectmanagermodel.h.
|
override |
Definition at line 392 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 419 of file qgsprojectstoredobjectmanagermodel.cpp.
|
protected |
Filter string.
Definition at line 205 of file qgsprojectstoredobjectmanagermodel.h.