QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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:

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.
QgsAttributesFormModelsourceAttributesFormModel () const
 Returns the source 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 884 of file qgsattributesformmodel.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormProxyModel()

QgsAttributesFormProxyModel::QgsAttributesFormProxyModel ( QObject * parent = nullptr)

Constructor for QgsAttributesFormProxyModel, with the given parent.

Definition at line 1743 of file qgsattributesformmodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 1774 of file qgsattributesformmodel.cpp.

◆ filterText()

const QString QgsAttributesFormProxyModel::filterText ( ) const

Returns the text used to filter source model items.

Definition at line 1759 of file qgsattributesformmodel.cpp.

◆ setAttributesFormSourceModel()

void QgsAttributesFormProxyModel::setAttributesFormSourceModel ( QgsAttributesFormModel * model)

Sets the source model for the proxy model.

Definition at line 1748 of file qgsattributesformmodel.cpp.

◆ setFilterText

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

Sets the filter text.

Definition at line 1764 of file qgsattributesformmodel.cpp.

◆ sourceAttributesFormModel()

QgsAttributesFormModel * QgsAttributesFormProxyModel::sourceAttributesFormModel ( ) const

Returns the source model.

Since
QGIS 4.0

Definition at line 1754 of file qgsattributesformmodel.cpp.


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