Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSortedCompositeOpListModel Class Reference

The KisSortedCompositeOpListModel class provides a model for the composite op combobox. More...

#include <kis_composite_ops_model.h>

+ Inheritance diagram for KisSortedCompositeOpListModel:

Public Member Functions

 KisSortedCompositeOpListModel (bool limitToLayerStyles, QObject *parent)
 
void validate (const KoColorSpace *cs)
 
- Public Member Functions inherited from KisSortedCategorizedListModel< KisCompositeOpListModel >
bool entryAt (Entry_Type &entry, QModelIndex index) const
 
QModelIndex indexOf (const Entry_Type &entry) const
 
 KisSortedCategorizedListModel (QObject *parent)
 

Protected Member Functions

bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
 
- Protected Member Functions inherited from KisSortedCategorizedListModel< KisCompositeOpListModel >
void initializeModel (KisCompositeOpListModel *model)
 
bool lessThanPriority (const QModelIndex &left, const QModelIndex &right, const QString &priorityCategory) const
 

Private Attributes

KisCompositeOpListModel m_model
 

Detailed Description

The KisSortedCompositeOpListModel class provides a model for the composite op combobox.

It intentionally does NOT use the shared instance of KisCompositeOpListModel because it is perfect valid for two composite comboboxes to show a different set of valid composite ops.

Definition at line 54 of file kis_composite_ops_model.h.

Constructor & Destructor Documentation

◆ KisSortedCompositeOpListModel()

KisSortedCompositeOpListModel::KisSortedCompositeOpListModel ( bool limitToLayerStyles,
QObject * parent )
inline

Member Function Documentation

◆ lessThan()

bool KisSortedCompositeOpListModel::lessThan ( const QModelIndex & left,
const QModelIndex & right ) const
inlineoverrideprotected

Definition at line 74 of file kis_composite_ops_model.h.

74 {
76 }
bool lessThanPriority(const QModelIndex &left, const QModelIndex &right, const QString &priorityCategory) const
const char * name(StandardAction id)

References KisCompositeOpListModel::favoriteCategory().

◆ validate()

void KisSortedCompositeOpListModel::validate ( const KoColorSpace * cs)
inline

Definition at line 69 of file kis_composite_ops_model.h.

69 {
70 m_model.validate(cs);
71 }
void validate(const KoColorSpace *cs)

Member Data Documentation

◆ m_model

KisCompositeOpListModel KisSortedCompositeOpListModel::m_model
private

Definition at line 78 of file kis_composite_ops_model.h.


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