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

Public Types

enum  RatingValue {
  Null = -2 , NoRating = -1 , Rating0 = 0 , Rating1 = 1 ,
  Rating2 = 2 , Rating3 = 3 , Rating4 = 4 , Rating5 = 5
}
 

Signals

void ratingValueChanged (int value)
 

Public Member Functions

QModelIndex currentIndex () const
 
void hidePopup () override
 
 RatingComboBox (QWidget *const parent=nullptr)
 
RatingValue ratingValue () const
 
void setCurrentIndex (const QModelIndex &index)
 
void setRatingValue (RatingValue value)
 
void showPopup () override
 

Protected Slots

void currentValueChanged (const QModelIndex &current, const QModelIndex &previous)
 
void ratingWidgetChanged (int)
 

Protected Attributes

QPersistentModelIndex m_currentIndex
 
RatingComboBoxModelm_model
 
RatingComboBoxWidgetm_ratingWidget
 

Member Enumeration Documentation

◆ RatingValue

An advanced widget for entering a rating, including support for Null and NoRating values

Enumerator
Null 

The rating value. All values except Null correspond to the integers used by the database.

NoRating 
Rating0 
Rating1 
Rating2 
Rating3 
Rating4 
Rating5 

Constructor & Destructor Documentation

◆ RatingComboBox()

Digikam::RatingComboBox::RatingComboBox ( QWidget *const  parent = nullptr)
explicit

Member Function Documentation

◆ currentIndex()

QModelIndex Digikam::ModelIndexBasedComboBox::currentIndex ( ) const
inherited

◆ currentValueChanged

void Digikam::RatingComboBox::currentValueChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedslot

◆ hidePopup()

void Digikam::ModelIndexBasedComboBox::hidePopup ( )
overrideinherited

◆ ratingValue()

◆ ratingValueChanged

void Digikam::RatingComboBox::ratingValueChanged ( int  value)
signal

◆ ratingWidgetChanged

void Digikam::RatingComboBox::ratingWidgetChanged ( int  rv)
protectedslot

◆ setCurrentIndex()

void Digikam::ModelIndexBasedComboBox::setCurrentIndex ( const QModelIndex &  index)
inherited

◆ setRatingValue()

◆ showPopup()

void Digikam::ModelIndexBasedComboBox::showPopup ( )
overrideinherited

Member Data Documentation

◆ m_currentIndex

◆ m_model

RatingComboBoxModel* Digikam::RatingComboBox::m_model
protected

◆ m_ratingWidget

RatingComboBoxWidget* Digikam::RatingComboBox::m_ratingWidget
protected

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