![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
enum | RatingValue { Null = -2 , NoRating = -1 , Rating0 = 0 , Rating1 = 1 , Rating2 = 2 , Rating3 = 3 , Rating4 = 4 , Rating5 = 5 } |
An advanced widget for entering a rating, including support for Null and NoRating values. More... | |
Signals | |
void | ratingValueChanged (int value) |
Public Member Functions | |
RatingComboBox (QWidget *const parent=nullptr) | |
RatingValue | ratingValue () const |
void | setRatingValue (RatingValue value) |
![]() | |
ModelIndexBasedComboBox (QWidget *const parent=nullptr) | |
QComboBox has a current index based on a single integer. | |
QModelIndex | currentIndex () const |
void | hidePopup () override |
void | setCurrentIndex (const QModelIndex &index) |
void | showPopup () override |
Protected Slots | |
void | currentValueChanged (const QModelIndex ¤t, const QModelIndex &previous) |
void | ratingWidgetChanged (int) |
Protected Attributes | |
RatingComboBoxModel * | m_model = nullptr |
RatingComboBoxWidget * | m_ratingWidget = nullptr |
![]() | |
QPersistentModelIndex | m_currentIndex |