QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel. More...
#include <qgsprovidersublayermodel.h>
Public Member Functions | |
QgsProviderSublayerProxyModel (QObject *parent=nullptr) | |
Constructor for QgsProviderSublayerProxyModel, with the specified parent object. | |
QString | filterString () const |
Returns the filter string used for filtering items in the model. | |
bool | includeEmptyLayers () const |
Returns true if empty tables will be shown in the model. | |
bool | includeSystemTables () const |
Returns true if system and internal tables will be shown in the model. | |
void | setFilterString (const QString &filter) |
Sets the filter string used for filtering items in the model. | |
void | setIncludeEmptyLayers (bool include) |
Sets whether empty tables will be shown in the model. | |
void | setIncludeSystemTables (bool include) |
Sets whether system and internal tables will be shown in the model. | |
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 |
A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.
Definition at line 379 of file qgsprovidersublayermodel.h.
QgsProviderSublayerProxyModel::QgsProviderSublayerProxyModel | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProviderSublayerProxyModel, with the specified parent object.
Definition at line 646 of file qgsprovidersublayermodel.cpp.
|
overrideprotected |
Definition at line 654 of file qgsprovidersublayermodel.cpp.
QString QgsProviderSublayerProxyModel::filterString | ( | ) | const |
Returns the filter string used for filtering items in the model.
Definition at line 724 of file qgsprovidersublayermodel.cpp.
bool QgsProviderSublayerProxyModel::includeEmptyLayers | ( | ) | const |
Returns true
if empty tables will be shown in the model.
Definition at line 713 of file qgsprovidersublayermodel.cpp.
bool QgsProviderSublayerProxyModel::includeSystemTables | ( | ) | const |
Returns true
if system and internal tables will be shown in the model.
Definition at line 702 of file qgsprovidersublayermodel.cpp.
|
overrideprotected |
Definition at line 686 of file qgsprovidersublayermodel.cpp.
void QgsProviderSublayerProxyModel::setFilterString | ( | const QString & | filter | ) |
Sets the filter string used for filtering items in the model.
Definition at line 729 of file qgsprovidersublayermodel.cpp.
void QgsProviderSublayerProxyModel::setIncludeEmptyLayers | ( | bool | include | ) |
Sets whether empty tables will be shown in the model.
Definition at line 718 of file qgsprovidersublayermodel.cpp.
void QgsProviderSublayerProxyModel::setIncludeSystemTables | ( | bool | include | ) |
Sets whether system and internal tables will be shown in the model.
Definition at line 707 of file qgsprovidersublayermodel.cpp.