digiKam
|
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::RatingValue > | m_entries |
|
explicit |
References m_entries, Digikam::RatingComboBox::Null, Digikam::RatingComboBox::Rating5, and value.
|
override |
References index(), RatingRole, ratingValueToDisplay(), and value.
|
override |
QModelIndex Digikam::RatingComboBoxModel::indexForRatingValue | ( | RatingComboBox::RatingValue | value | ) | const |
References m_entries, and value.
Referenced by Digikam::RatingComboBox::ratingWidgetChanged(), and Digikam::RatingComboBox::setRatingValue().
|
protected |
References Digikam::RatingComboBox::NoRating, Digikam::RatingComboBox::Null, Digikam::RatingComboBox::Rating0, Digikam::RatingComboBox::Rating1, Digikam::RatingComboBox::Rating2, Digikam::RatingComboBox::Rating3, Digikam::RatingComboBox::Rating4, Digikam::RatingComboBox::Rating5, and value.
Referenced by data().
|
override |
References m_entries.
|
protected |
Referenced by index(), indexForRatingValue(), RatingComboBoxModel(), and rowCount().