QGIS API Documentation 3.99.0-Master (a26b91b364d)
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 1688 of file qgsattributesformmodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 1714 of file qgsattributesformmodel.cpp.

◆ filterText()

const QString QgsAttributesFormProxyModel::filterText ( ) const

Returns the text used to filter source model items.

Definition at line 1699 of file qgsattributesformmodel.cpp.

◆ setAttributesFormSourceModel()

void QgsAttributesFormProxyModel::setAttributesFormSourceModel ( QgsAttributesFormModel model)

Sets the source model for the proxy model.

Definition at line 1693 of file qgsattributesformmodel.cpp.

◆ setFilterText

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

Sets the filter text.

Definition at line 1704 of file qgsattributesformmodel.cpp.


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