25 mFilterExtent = extent;
31 mFilterGeometryType = geometryType;
43 mFilterMapLayerType = mapLayerType;
49 QModelIndex index0 = sourceModel()->index( sourceRow, 0, sourceParent );
50 bool result { QSortFilterProxyModel::filterAcceptsRow( sourceRow, sourceParent ) };
56 if ( ! mFilterString.isEmpty() )
58 result = result && metadataResult.
contains( mFilterString );
61 if ( result && ! mFilterExtent.
isEmpty() )
67 if ( result && mFilterMapLayerTypeEnabled )
69 result = result && metadataResult.layerType() == mFilterMapLayerType;
72 if ( result && mFilterGeometryTypeEnabled )
80 result = result && metadataResult.geometryType() == mFilterGeometryType;
90 mFilterMapLayerTypeEnabled = enabled;
96 mFilterGeometryTypeEnabled = enabled;
102 return mFilterString;
A rectangle specified with double values.
bool intersects(const QgsRectangle &rect) const SIP_HOLDGIL
Returns true when rectangle intersects with other rectangle.
bool isEmpty() const
Returns true if the rectangle is empty.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
QgsMapLayerType
Types of layers that can be added to a map.