QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
A proxy model for filtering QgsProjectStyleDatabaseModel. More...
#include <qgsprojectstylesettings.h>
Public Types | |
enum class | Filter : int { FilterHideReadOnly = 1 << 0 } |
Available filter flags for filtering the model. More... | |
typedef QFlags< Filter > | Filters |
Available filter flags for filtering the model. | |
Public Member Functions | |
QgsProjectStyleDatabaseProxyModel (QgsProjectStyleDatabaseModel *model, QObject *parent=nullptr) | |
Constructor for QgsProjectStyleDatabaseProxyModel, for the specified style database model. | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
QgsProjectStyleDatabaseProxyModel::Filters | filters () const |
Returns the current filters used for filtering available style. | |
void | setFilters (QgsProjectStyleDatabaseProxyModel::Filters filters) |
Sets the current filters used for filtering available styles. | |
A proxy model for filtering QgsProjectStyleDatabaseModel.
Definition at line 452 of file qgsprojectstylesettings.h.
typedef QFlags< Filter > QgsProjectStyleDatabaseProxyModel::Filters |
Available filter flags for filtering the model.
Definition at line 465 of file qgsprojectstylesettings.h.
|
strong |
Available filter flags for filtering the model.
Enumerator | |
---|---|
FilterHideReadOnly | Hide read-only style databases. |
Definition at line 459 of file qgsprojectstylesettings.h.
QgsProjectStyleDatabaseProxyModel::QgsProjectStyleDatabaseProxyModel | ( | QgsProjectStyleDatabaseModel * | model, |
QObject * | parent = nullptr |
||
) |
Constructor for QgsProjectStyleDatabaseProxyModel, for the specified style database model.
Definition at line 790 of file qgsprojectstylesettings.cpp.
|
override |
Definition at line 797 of file qgsprojectstylesettings.cpp.
QgsProjectStyleDatabaseProxyModel::Filters QgsProjectStyleDatabaseProxyModel::filters | ( | ) | const |
Returns the current filters used for filtering available style.
Definition at line 811 of file qgsprojectstylesettings.cpp.
void QgsProjectStyleDatabaseProxyModel::setFilters | ( | QgsProjectStyleDatabaseProxyModel::Filters | filters | ) |
Sets the current filters used for filtering available styles.
Definition at line 816 of file qgsprojectstylesettings.cpp.