Class: QgsSelectiveMaskingSourceSetManagerModel¶
List model representing the selective masking source sets available in a selective masking source sets manager.
Added in version 4.0.
Class Hierarchy¶
Base classes¶
Base class for list models representing the objects available in a |
|
Enums
Custom model roles. |
Methods
Returns the model index corresponding to a set. |
|
Returns the set at the corresponding index. |
- class qgis.core.QgsSelectiveMaskingSourceSetManagerModel[source]¶
Bases:
QgsProjectStoredObjectManagerModelBase- __init__(manager: QgsSelectiveMaskingSourceSetManager | None, parent: QObject | None = None)
Constructor for QgsSelectiveMaskingSourceSetManagerModel, showing the sets from the specified
manager.- Parameters:
manager (Optional[QgsSelectiveMaskingSourceSetManager])
parent (Optional[QObject] = None)
- class CustomRole(*values)¶
Bases:
IntEnumCustom model roles.
Object: ObjectIsEmptyObject:Trueif row represents the empty objectSetId: Selective masking source set unique ID
- IsEmptyObject = 258¶
- Object = 257¶
- SetId = 259¶
- indexFromSet(self, set: QgsSelectiveMaskingSourceSet | None) QModelIndex[source]¶
Returns the model index corresponding to a
set.See also
- Parameters:
- Return type:
QModelIndex
- setFromIndex(self, index: QModelIndex) QgsSelectiveMaskingSourceSet | None[source]¶
Returns the set at the corresponding
index.See also
- Parameters:
index (QModelIndex)
- Return type: