QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
Public Types | Public Member Functions | List of all members
QgsProjectStyleDatabaseProxyModel Class Reference

A proxy model for filtering QgsProjectStyleDatabaseModel. More...

#include <qgsprojectstylesettings.h>

Inheritance diagram for QgsProjectStyleDatabaseProxyModel:
Inheritance graph
[legend]

Public Types

enum  Filter { Filter::FilterHideReadOnly = 1 << 0 }
 Available filter flags for filtering the model. More...
 

Public Member Functions

 QgsProjectStyleDatabaseProxyModel (QgsProjectStyleDatabaseModel *model, QObject *parent SIP_TRANSFERTHIS=nullptr)
 Available filter flags for filtering the model. More...
 
bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
 
QgsProjectStyleDatabaseProxyModel::Filters filters () const
 Returns the current filters used for filtering available style. More...
 
void setFilters (QgsProjectStyleDatabaseProxyModel::Filters filters)
 Sets the current filters used for filtering available styles. More...
 

Detailed Description

A proxy model for filtering QgsProjectStyleDatabaseModel.

Since
QGIS 3.26

Definition at line 369 of file qgsprojectstylesettings.h.

Member Enumeration Documentation

◆ Filter

Available filter flags for filtering the model.

Enumerator
FilterHideReadOnly 

Hide read-only style databases.

Definition at line 376 of file qgsprojectstylesettings.h.

Constructor & Destructor Documentation

◆ QgsProjectStyleDatabaseProxyModel()

QgsProjectStyleDatabaseProxyModel::QgsProjectStyleDatabaseProxyModel ( QgsProjectStyleDatabaseModel model,
QObject *parent  SIP_TRANSFERTHIS = nullptr 
)

Available filter flags for filtering the model.

Constructor for QgsProjectStyleDatabaseProxyModel, for the specified style database model.

Definition at line 657 of file qgsprojectstylesettings.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 664 of file qgsprojectstylesettings.cpp.

◆ filters()

QgsProjectStyleDatabaseProxyModel::Filters QgsProjectStyleDatabaseProxyModel::filters ( ) const

Returns the current filters used for filtering available style.

See also
setFilters()

Definition at line 678 of file qgsprojectstylesettings.cpp.

◆ setFilters()

void QgsProjectStyleDatabaseProxyModel::setFilters ( QgsProjectStyleDatabaseProxyModel::Filters  filters)

Sets the current filters used for filtering available styles.

See also
filters()

Definition at line 683 of file qgsprojectstylesettings.cpp.


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