QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsLayerMetadataResultsProxyModel Class Reference

The QgsLayerMetadataResultsProxyModel class is a proxy model for QgsLayerMetadataResultsModel, it handles text and extent filtering. More...

#include <qgslayermetadataresultsproxymodel.h>

Inheritance diagram for QgsLayerMetadataResultsProxyModel:
Inheritance graph
[legend]

Public Slots

void setFilterExtent (const QgsRectangle &extent)
 Sets the extent filter to extent.
 
void setFilterGeometryType (Qgis::GeometryType geometryType)
 Sets the geometry type filter to geometryType.
 
void setFilterMapLayerType (const Qgis::LayerType mapLayerType)
 Sets the map layer type filter to mapLayerType.
 
void setFilterString (const QString &filterString)
 Sets the text filter to filterString.
 

Public Member Functions

 QgsLayerMetadataResultsProxyModel (QObject *parent=nullptr)
 Constructs a QgsLayerMetadataResultsProxyModel with an optional parent.
 
const QString filterString () const
 Returns the filter string.
 
void setFilterGeometryTypeEnabled (bool enabled)
 Sets the geometry type filter status to enabled.
 
void setFilterMapLayerTypeEnabled (bool enabled)
 Sets the map layer type filter status to enabled.
 

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
 

Detailed Description

The QgsLayerMetadataResultsProxyModel class is a proxy model for QgsLayerMetadataResultsModel, it handles text and extent filtering.

Since
QGIS 3.28

Definition at line 30 of file qgslayermetadataresultsproxymodel.h.

Constructor & Destructor Documentation

◆ QgsLayerMetadataResultsProxyModel()

QgsLayerMetadataResultsProxyModel::QgsLayerMetadataResultsProxyModel ( QObject *  parent = nullptr)
explicit

Constructs a QgsLayerMetadataResultsProxyModel with an optional parent.

Definition at line 20 of file qgslayermetadataresultsproxymodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool QgsLayerMetadataResultsProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
overrideprotected

Definition at line 48 of file qgslayermetadataresultsproxymodel.cpp.

◆ filterString()

const QString QgsLayerMetadataResultsProxyModel::filterString ( ) const

Returns the filter string.

Definition at line 101 of file qgslayermetadataresultsproxymodel.cpp.

◆ setFilterExtent

void QgsLayerMetadataResultsProxyModel::setFilterExtent ( const QgsRectangle extent)
slot

Sets the extent filter to extent.

Definition at line 24 of file qgslayermetadataresultsproxymodel.cpp.

◆ setFilterGeometryType

void QgsLayerMetadataResultsProxyModel::setFilterGeometryType ( Qgis::GeometryType  geometryType)
slot

Sets the geometry type filter to geometryType.

Definition at line 30 of file qgslayermetadataresultsproxymodel.cpp.

◆ setFilterGeometryTypeEnabled()

void QgsLayerMetadataResultsProxyModel::setFilterGeometryTypeEnabled ( bool  enabled)

Sets the geometry type filter status to enabled.

Definition at line 95 of file qgslayermetadataresultsproxymodel.cpp.

◆ setFilterMapLayerType

void QgsLayerMetadataResultsProxyModel::setFilterMapLayerType ( const Qgis::LayerType  mapLayerType)
slot

Sets the map layer type filter to mapLayerType.

Definition at line 42 of file qgslayermetadataresultsproxymodel.cpp.

◆ setFilterMapLayerTypeEnabled()

void QgsLayerMetadataResultsProxyModel::setFilterMapLayerTypeEnabled ( bool  enabled)

Sets the map layer type filter status to enabled.

Definition at line 89 of file qgslayermetadataresultsproxymodel.cpp.

◆ setFilterString

void QgsLayerMetadataResultsProxyModel::setFilterString ( const QString &  filterString)
slot

Sets the text filter to filterString.

Definition at line 36 of file qgslayermetadataresultsproxymodel.cpp.


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