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

Search proxy used to filter the QgsExpressionBuilderWidget tree. More...

#include <qgsexpressiontreeview.h>

Inheritance diagram for QgsExpressionItemSearchProxy:
Inheritance graph
[legend]

Public Member Functions

 QgsExpressionItemSearchProxy ()
 
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 
void setFilterString (const QString &string)
 Sets the search filter string.
 

Protected Member Functions

bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
 

Detailed Description

Search proxy used to filter the QgsExpressionBuilderWidget tree.

The default search for a tree model only searches top level this will handle one level down

Definition at line 117 of file qgsexpressiontreeview.h.

Constructor & Destructor Documentation

◆ QgsExpressionItemSearchProxy()

QgsExpressionItemSearchProxy::QgsExpressionItemSearchProxy ( )

Definition at line 860 of file qgsexpressiontreeview.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool QgsExpressionItemSearchProxy::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
override

Definition at line 865 of file qgsexpressiontreeview.cpp.

◆ lessThan()

bool QgsExpressionItemSearchProxy::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
overrideprotected

Definition at line 906 of file qgsexpressiontreeview.cpp.

◆ setFilterString()

void QgsExpressionItemSearchProxy::setFilterString ( const QString &  string)

Sets the search filter string.

Since
QGIS 3.22

Definition at line 900 of file qgsexpressiontreeview.cpp.


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