QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsProjectStoredObjectManagerProxyModel< T > Class Template Reference

Template class QSortFilterProxyModel subclass for QgsProjectStoredObjectManagerModel. More...

#include <qgsprojectstoredobjectmanagermodel.h>

Inheritance diagram for QgsProjectStoredObjectManagerProxyModel< T >:

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.

Detailed Description

template<class T>
class QgsProjectStoredObjectManagerProxyModel< T >

Template class QSortFilterProxyModel subclass for QgsProjectStoredObjectManagerModel.

Supports sorting by object name and text based filtering against the object name.

Since
QGIS 4.0

Definition at line 229 of file qgsprojectstoredobjectmanagermodel.h.

Constructor & Destructor Documentation

◆ QgsProjectStoredObjectManagerProxyModel()

template<class T>
QgsProjectStoredObjectManagerProxyModel< T >::QgsProjectStoredObjectManagerProxyModel ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ filterAcceptsRowInternal()

template<class T>
bool QgsProjectStoredObjectManagerProxyModel< T >::filterAcceptsRowInternal ( int sourceRow,
const QModelIndex & sourceParent ) const
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.


The documentation for this class was generated from the following files: