QGIS API Documentation 3.99.0-Master (e9821da5c6b)
Loading...
Searching...
No Matches
QgsSelectiveMaskingSourceSetManagerModel Class Reference

List model representing the selective masking source sets available in a selective masking source sets manager. More...

#include <qgsselectivemaskingsourcesetmanagermodel.h>

Inheritance diagram for QgsSelectiveMaskingSourceSetManagerModel:

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.
QgsSelectiveMaskingSourceSetsetFromIndex (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.
QgsSelectiveMaskingSourceSetobjectFromIndex (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.

Detailed Description

List model representing the selective masking source sets available in a selective masking source sets manager.

Since
QGIS 4.0

Definition at line 45 of file qgsselectivemaskingsourcesetmanagermodel.h.

Member Enumeration Documentation

◆ CustomRole

Custom model roles.

Enumerator
Object 

Object.

IsEmptyObject 

true if row represents the empty object

SetId 

Selective masking source set unique ID.

Definition at line 57 of file qgsselectivemaskingsourcesetmanagermodel.h.

Constructor & Destructor Documentation

◆ QgsSelectiveMaskingSourceSetManagerModel()

QgsSelectiveMaskingSourceSetManagerModel::QgsSelectiveMaskingSourceSetManagerModel ( QgsSelectiveMaskingSourceSetManager * manager,
QObject * parent = nullptr )
explicit

Constructor for QgsSelectiveMaskingSourceSetManagerModel, showing the sets from the specified manager.

Definition at line 28 of file qgsselectivemaskingsourcesetmanagermodel.cpp.

Member Function Documentation

◆ data()

QVariant QgsSelectiveMaskingSourceSetManagerModel::data ( const QModelIndex & index,
int role ) const
override

Definition at line 48 of file qgsselectivemaskingsourcesetmanagermodel.cpp.

◆ indexFromSet()

QModelIndex QgsSelectiveMaskingSourceSetManagerModel::indexFromSet ( QgsSelectiveMaskingSourceSet * set) const

Returns the model index corresponding to a set.

See also
setFromIndex()

Definition at line 43 of file qgsselectivemaskingsourcesetmanagermodel.cpp.

◆ setFromIndex()

QgsSelectiveMaskingSourceSet * QgsSelectiveMaskingSourceSetManagerModel::setFromIndex ( const QModelIndex & index) const

Returns the set at the corresponding index.

See also
indexFromSet()

Definition at line 38 of file qgsselectivemaskingsourcesetmanagermodel.cpp.


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