QGIS API Documentation 3.43.0-Master (8fc5848dca1)
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsAttributesFormProxyModel Class Reference

Proxy model to filter items in the tree views of the drag and drop designer. More...

#include <qgsattributesformmodel.h>

Inheritance diagram for QgsAttributesFormProxyModel:
Inheritance graph
[legend]

Public Slots

void setFilterText (const QString &filterText=QString())
 Sets the filter text.
 

Public Member Functions

 QgsAttributesFormProxyModel (QObject *parent=nullptr)
 Constructor for QgsAttributesFormProxyModel, with the given parent.
 
const QString filterText () const
 Returns the text used to filter source model items.
 
void setAttributesFormSourceModel (QgsAttributesFormModel *model)
 Sets the source model for the proxy model.
 

Protected Member Functions

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

Detailed Description

Proxy model to filter items in the tree views of the drag and drop designer.

Warning
Not part of stable API and may change in future QGIS releases.
Since
QGIS 3.44

Definition at line 829 of file qgsattributesformmodel.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormProxyModel()

QgsAttributesFormProxyModel::QgsAttributesFormProxyModel ( QObject *  parent = nullptr)

Constructor for QgsAttributesFormProxyModel, with the given parent.

Definition at line 1685 of file qgsattributesformmodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 1711 of file qgsattributesformmodel.cpp.

◆ filterText()

const QString QgsAttributesFormProxyModel::filterText ( ) const

Returns the text used to filter source model items.

Definition at line 1696 of file qgsattributesformmodel.cpp.

◆ setAttributesFormSourceModel()

void QgsAttributesFormProxyModel::setAttributesFormSourceModel ( QgsAttributesFormModel model)

Sets the source model for the proxy model.

Definition at line 1690 of file qgsattributesformmodel.cpp.

◆ setFilterText

void QgsAttributesFormProxyModel::setFilterText ( const QString &  filterText = QString())
slot

Sets the filter text.

Definition at line 1701 of file qgsattributesformmodel.cpp.


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