QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsSettingsTreeProxyModel Class Reference

QgsSettingsTreeProxyModel allows filtering the settings tree. More...

#include <qgssettingstreemodel.h>

Inheritance diagram for QgsSettingsTreeProxyModel:
Inheritance graph
[legend]

Public Slots

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

Public Member Functions

 QgsSettingsTreeProxyModel (QgsSettingsTreeNode *rootNode=nullptr, QObject *parent=nullptr)
 Constructor. More...
 
void applyChanges ()
 Apply pending changes in the model to the corresponding settings. More...
 

Protected Member Functions

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

Detailed Description

QgsSettingsTreeProxyModel allows filtering the settings tree.

Since
QGIS 3.32

Definition at line 223 of file qgssettingstreemodel.h.

Constructor & Destructor Documentation

◆ QgsSettingsTreeProxyModel()

QgsSettingsTreeProxyModel::QgsSettingsTreeProxyModel ( QgsSettingsTreeNode rootNode = nullptr,
QObject *  parent = nullptr 
)

Constructor.

Definition at line 505 of file qgssettingstreemodel.cpp.

Member Function Documentation

◆ applyChanges()

void QgsSettingsTreeProxyModel::applyChanges ( )
inline

Apply pending changes in the model to the corresponding settings.

Definition at line 231 of file qgssettingstreemodel.h.

◆ filterAcceptsRow()

bool QgsSettingsTreeProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
overrideprotected

Definition at line 521 of file qgssettingstreemodel.cpp.

◆ setFilterText

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

Sets the filter text.

Definition at line 512 of file qgssettingstreemodel.cpp.


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