QGIS API Documentation  2.99.0-Master (b2587b7)
Public Member Functions | Protected Member Functions | List of all members
QgsDbFilterProxyModel Class Reference

A class that implements a custom filter and can be used as a proxy for QgsDbTableModel. More...

#include <qgsdbfilterproxymodel.h>

Inheritance diagram for QgsDbFilterProxyModel:
Inheritance graph

Public Member Functions

 QgsDbFilterProxyModel (QObject *parent=nullptr)
 ~QgsDbFilterProxyModel ()
void _setFilterRegExp (const QString &pattern)
 Calls QSortFilterProxyModel::setFilterRegExp and triggers update. More...
void _setFilterWildcard (const QString &pattern)
 Calls QSortFilterProxyModel::setFilterWildcard and triggers update. More...

Protected Member Functions

virtual bool filterAcceptsRow (int row, const QModelIndex &source_parent) const override

Detailed Description

A class that implements a custom filter and can be used as a proxy for QgsDbTableModel.

Definition at line 26 of file qgsdbfilterproxymodel.h.

Constructor & Destructor Documentation

§ QgsDbFilterProxyModel()

QgsDbFilterProxyModel::QgsDbFilterProxyModel ( QObject *  parent = nullptr)

Definition at line 20 of file qgsdbfilterproxymodel.cpp.

§ ~QgsDbFilterProxyModel()

QgsDbFilterProxyModel::~QgsDbFilterProxyModel ( )

Definition at line 25 of file qgsdbfilterproxymodel.cpp.

Member Function Documentation

§ _setFilterRegExp()

void QgsDbFilterProxyModel::_setFilterRegExp ( const QString &  pattern)

Calls QSortFilterProxyModel::setFilterRegExp and triggers update.

Definition at line 49 of file qgsdbfilterproxymodel.cpp.

§ _setFilterWildcard()

void QgsDbFilterProxyModel::_setFilterWildcard ( const QString &  pattern)

Calls QSortFilterProxyModel::setFilterWildcard and triggers update.

Definition at line 43 of file qgsdbfilterproxymodel.cpp.

§ filterAcceptsRow()

bool QgsDbFilterProxyModel::filterAcceptsRow ( int  row,
const QModelIndex &  source_parent 
) const

Definition at line 30 of file qgsdbfilterproxymodel.cpp.

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