QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
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. More... | |
QString | filterString () const |
Returns the filter string used for filtering items 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 | 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 |
A QSortFilterProxyModel for filtering and sorting a QgsProviderSublayerModel.
Definition at line 224 of file qgsprovidersublayermodel.h.
QgsProviderSublayerProxyModel::QgsProviderSublayerProxyModel | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProviderSublayerProxyModel, with the specified parent object.
Definition at line 392 of file qgsprovidersublayermodel.cpp.
|
overrideprotected |
Definition at line 399 of file qgsprovidersublayermodel.cpp.
QString QgsProviderSublayerProxyModel::filterString | ( | ) | const |
Returns the filter string used for filtering items in the model.
Definition at line 453 of file qgsprovidersublayermodel.cpp.
bool QgsProviderSublayerProxyModel::includeSystemTables | ( | ) | const |
Returns true
if system and internal tables will be shown in the model.
Definition at line 442 of file qgsprovidersublayermodel.cpp.
|
overrideprotected |
Definition at line 426 of file qgsprovidersublayermodel.cpp.
void QgsProviderSublayerProxyModel::setFilterString | ( | const QString & | filter | ) |
Sets the filter string used for filtering items in the model.
Definition at line 458 of file qgsprovidersublayermodel.cpp.
void QgsProviderSublayerProxyModel::setIncludeSystemTables | ( | bool | include | ) |
Sets whether system and internal tables will be shown in the model.
Definition at line 447 of file qgsprovidersublayermodel.cpp.