QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | Protected Member Functions | List of all members
QgsDatabaseFilterProxyModel Class Reference

#include <qgsdbfilterproxymodel.h>

Inheritance diagram for QgsDatabaseFilterProxyModel:
Inheritance graph
[legend]

Public Member Functions

 QgsDatabaseFilterProxyModel (QObject *parent=nullptr)
 Constructor for QgsDatabaseFilterProxyModel. More...
 
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

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

Since
QGIS 3.0

Definition at line 33 of file qgsdbfilterproxymodel.h.

Constructor & Destructor Documentation

◆ QgsDatabaseFilterProxyModel()

QgsDatabaseFilterProxyModel::QgsDatabaseFilterProxyModel ( QObject *  parent = nullptr)

Constructor for QgsDatabaseFilterProxyModel.

Definition at line 20 of file qgsdbfilterproxymodel.cpp.

Member Function Documentation

◆ _setFilterRegExp()

void QgsDatabaseFilterProxyModel::_setFilterRegExp ( const QString &  pattern)

Calls QSortFilterProxyModel::setFilterRegExp and triggers update.

Definition at line 44 of file qgsdbfilterproxymodel.cpp.

◆ _setFilterWildcard()

void QgsDatabaseFilterProxyModel::_setFilterWildcard ( const QString &  pattern)

Calls QSortFilterProxyModel::setFilterWildcard and triggers update.

Definition at line 38 of file qgsdbfilterproxymodel.cpp.

◆ filterAcceptsRow()

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

Definition at line 25 of file qgsdbfilterproxymodel.cpp.


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