digiKam
Digikam::RatingComboBoxModel Class Reference
+ Inheritance diagram for Digikam::RatingComboBoxModel:

Public Types

enum  CustomRoles { RatingRole = Qt::UserRole }
 

Public Member Functions

QVariant data (const QModelIndex &index, int role) const override
 
QModelIndex index (int row, int column=0, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex indexForRatingValue (RatingComboBox::RatingValue value) const
 
 RatingComboBoxModel (QObject *const parent=nullptr)
 
int rowCount (const QModelIndex &parent) const override
 

Protected Member Functions

QVariant ratingValueToDisplay (RatingComboBox::RatingValue value) const
 

Protected Attributes

QList< RatingComboBox::RatingValuem_entries
 

Member Enumeration Documentation

◆ CustomRoles

Enumerator
RatingRole 

Constructor & Destructor Documentation

◆ RatingComboBoxModel()

Digikam::RatingComboBoxModel::RatingComboBoxModel ( QObject *const  parent = nullptr)
explicit

Member Function Documentation

◆ data()

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

◆ index()

QModelIndex Digikam::RatingComboBoxModel::index ( int  row,
int  column = 0,
const QModelIndex &  parent = QModelIndex() 
) const
override

References m_entries.

Referenced by data().

◆ indexForRatingValue()

QModelIndex Digikam::RatingComboBoxModel::indexForRatingValue ( RatingComboBox::RatingValue  value) const

◆ ratingValueToDisplay()

◆ rowCount()

int Digikam::RatingComboBoxModel::rowCount ( const QModelIndex &  parent) const
override

References m_entries.

Member Data Documentation

◆ m_entries

QList<RatingComboBox::RatingValue> Digikam::RatingComboBoxModel::m_entries
protected

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