|
QGIS API Documentation 3.99.0-Master (e9821da5c6b)
|
List model representing the selective masking source sets available in a selective masking source sets manager. More...
#include <qgsselectivemaskingsourcesetmanagermodel.h>

Public Types | |
| enum class | CustomRole : int { Object = Qt::UserRole + 1 , IsEmptyObject = Qt::UserRole + 2 , SetId = Qt::UserRole + 3 } |
| Custom model roles. More... | |
| Public Types inherited from QgsProjectStoredObjectManagerModelBase | |
| enum class | CustomRole : int { Object = Qt::UserRole + 1 , IsEmptyObject } |
| Custom model roles. More... | |
Public Member Functions | |
| QgsSelectiveMaskingSourceSetManagerModel (QgsSelectiveMaskingSourceSetManager *manager, QObject *parent=nullptr) | |
| Constructor for QgsSelectiveMaskingSourceSetManagerModel, showing the sets from the specified manager. | |
| QVariant | data (const QModelIndex &index, int role) const override |
| QModelIndex | indexFromSet (QgsSelectiveMaskingSourceSet *set) const |
| Returns the model index corresponding to a set. | |
| QgsSelectiveMaskingSourceSet * | setFromIndex (const QModelIndex &index) const |
| Returns the set at the corresponding index. | |
| Public Member Functions inherited from QgsProjectStoredObjectManagerModel< QgsSelectiveMaskingSourceSet > | |
| QgsProjectStoredObjectManagerModel (QgsAbstractProjectStoredObjectManager< QgsSelectiveMaskingSourceSet > *manager, QObject *parent=nullptr) | |
| Constructor for QgsProjectStoredObjectManagerModel, showing the objects from the specified manager. | |
| bool | allowEmptyObject () const |
Returns true if the model allows the empty object ("not set") choice. | |
| QModelIndex | indexFromObject (QgsSelectiveMaskingSourceSet *object) const |
| Returns the model index corresponding to an object. | |
| QgsSelectiveMaskingSourceSet * | objectFromIndex (const QModelIndex &index) const |
| Returns the object at the corresponding index. | |
| void | setAllowEmptyObject (bool allowEmpty) |
| Sets whether an optional empty object ("not set") option is present in the model. | |
| Public Member Functions inherited from QgsProjectStoredObjectManagerModelBase | |
| QgsProjectStoredObjectManagerModelBase (QObject *parent=nullptr) | |
| Constructor for QgsProjectStoredObjectManagerModelBase, with the specified parent object. | |
| QVariant | data (const QModelIndex &index, int role) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| int | rowCount (const QModelIndex &parent) const override |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
Additional Inherited Members | |
| Protected Attributes inherited from QgsProjectStoredObjectManagerModel< QgsSelectiveMaskingSourceSet > | |
| PRIVATE QgsAbstractProjectStoredObjectManager< QgsSelectiveMaskingSourceSet > * | mObjectManager |
| Object manager. | |
List model representing the selective masking source sets available in a selective masking source sets manager.
Definition at line 45 of file qgsselectivemaskingsourcesetmanagermodel.h.
|
strong |
Custom model roles.
| Enumerator | |
|---|---|
| Object | Object. |
| IsEmptyObject |
|
| SetId | Selective masking source set unique ID. |
Definition at line 57 of file qgsselectivemaskingsourcesetmanagermodel.h.
|
explicit |
Constructor for QgsSelectiveMaskingSourceSetManagerModel, showing the sets from the specified manager.
Definition at line 28 of file qgsselectivemaskingsourcesetmanagermodel.cpp.
|
override |
Definition at line 48 of file qgsselectivemaskingsourcesetmanagermodel.cpp.
| QModelIndex QgsSelectiveMaskingSourceSetManagerModel::indexFromSet | ( | QgsSelectiveMaskingSourceSet * | set | ) | const |
Returns the model index corresponding to a set.
Definition at line 43 of file qgsselectivemaskingsourcesetmanagermodel.cpp.
| QgsSelectiveMaskingSourceSet * QgsSelectiveMaskingSourceSetManagerModel::setFromIndex | ( | const QModelIndex & | index | ) | const |
Returns the set at the corresponding index.
Definition at line 38 of file qgsselectivemaskingsourcesetmanagermodel.cpp.