22#include "moc_qgsselectivemaskingsourcesetmanagermodel.cpp"
34 objectRenamedInternal( sourceSet, newName );
50 if ( index.row() < 0 || index.row() >=
rowCount( QModelIndex() ) )
59 return tr(
"Custom" );
64 font.setItalic(
true );
68 case Qt::ForegroundRole:
71 QColor fadedTextColor = brush.color();
72 fadedTextColor.setAlpha( 128 );
73 brush.setColor( fadedTextColor );
int rowCount(const QModelIndex &parent) const override
QVariant data(const QModelIndex &index, int role) const override
QModelIndex indexFromObject(QgsSelectiveMaskingSourceSet *object) const
QgsSelectiveMaskingSourceSet * objectFromIndex(const QModelIndex &index) const
QgsProjectStoredObjectManagerModel(QgsAbstractProjectStoredObjectManager< QgsSelectiveMaskingSourceSet > *manager, QObject *parent=nullptr)
PRIVATE QgsAbstractProjectStoredObjectManager< QgsSelectiveMaskingSourceSet > * mObjectManager
bool allowEmptyObject() const
QgsProjectStoredObjectManagerProxyModel(QObject *parent=nullptr)
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
@ SetId
Selective masking source set unique ID.
QgsSelectiveMaskingSourceSet * setFromIndex(const QModelIndex &index) const
Returns the set at the corresponding index.
QModelIndex indexFromSet(QgsSelectiveMaskingSourceSet *set) const
Returns the model index corresponding to a set.
QgsSelectiveMaskingSourceSetManagerProxyModel(QObject *parent=nullptr)
Constructor for QgsSelectiveMaskingSourceSetManagerProxyModel.
Manages storage of a set of selective masking source sets.
void setRenamed(const QString &oldName, const QString &newName)
Emitted when a set is renamed.
Represents a named set of selective masking sources (QgsSelectiveMaskSource).