QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | Protected Member Functions | List of all members
QgsProviderSublayerProxyModel Class Reference

A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel. More...

#include <qgsprovidersublayermodel.h>

Inheritance diagram for QgsProviderSublayerProxyModel:
Inheritance graph
[legend]

Public Member Functions

 QgsProviderSublayerProxyModel (QObject *parent=nullptr)
 Constructor for QgsProviderSublayerProxyModel, with the specified parent object. More...
 
QString filterString () const
 Returns the filter string used for filtering items in the model. More...
 
bool includeEmptyLayers () const
 Returns true if empty tables will be shown in the model. More...
 
bool includeSystemTables () const
 Returns true if system and internal tables will be shown in the model. More...
 
void setFilterString (const QString &filter)
 Sets the filter string used for filtering items in the model. More...
 
void setIncludeEmptyLayers (bool include)
 Sets whether empty tables will be shown in the model. More...
 
void setIncludeSystemTables (bool include)
 Sets whether system and internal tables will be shown in the model. More...
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 
bool lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override
 

Detailed Description

A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.

Since
QGIS 3.22

Definition at line 379 of file qgsprovidersublayermodel.h.

Constructor & Destructor Documentation

◆ QgsProviderSublayerProxyModel()

QgsProviderSublayerProxyModel::QgsProviderSublayerProxyModel ( QObject *  parent = nullptr)

Constructor for QgsProviderSublayerProxyModel, with the specified parent object.

Definition at line 644 of file qgsprovidersublayermodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool QgsProviderSublayerProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
overrideprotected

Definition at line 652 of file qgsprovidersublayermodel.cpp.

◆ filterString()

QString QgsProviderSublayerProxyModel::filterString ( ) const

Returns the filter string used for filtering items in the model.

See also
setFilterString()

Definition at line 722 of file qgsprovidersublayermodel.cpp.

◆ includeEmptyLayers()

bool QgsProviderSublayerProxyModel::includeEmptyLayers ( ) const

Returns true if empty tables will be shown in the model.

See also
setIncludeEmptyLayers()
Since
QGIS 3.28

Definition at line 711 of file qgsprovidersublayermodel.cpp.

◆ includeSystemTables()

bool QgsProviderSublayerProxyModel::includeSystemTables ( ) const

Returns true if system and internal tables will be shown in the model.

See also
setIncludeSystemTables()

Definition at line 700 of file qgsprovidersublayermodel.cpp.

◆ lessThan()

bool QgsProviderSublayerProxyModel::lessThan ( const QModelIndex &  source_left,
const QModelIndex &  source_right 
) const
overrideprotected

Definition at line 684 of file qgsprovidersublayermodel.cpp.

◆ setFilterString()

void QgsProviderSublayerProxyModel::setFilterString ( const QString &  filter)

Sets the filter string used for filtering items in the model.

See also
filterString()

Definition at line 727 of file qgsprovidersublayermodel.cpp.

◆ setIncludeEmptyLayers()

void QgsProviderSublayerProxyModel::setIncludeEmptyLayers ( bool  include)

Sets whether empty tables will be shown in the model.

See also
includeEmptyLayers()
Since
QGIS 3.28

Definition at line 716 of file qgsprovidersublayermodel.cpp.

◆ setIncludeSystemTables()

void QgsProviderSublayerProxyModel::setIncludeSystemTables ( bool  include)

Sets whether system and internal tables will be shown in the model.

See also
includeSystemTables()

Definition at line 705 of file qgsprovidersublayermodel.cpp.


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