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

Signals

void ratingValueChanged (int value)
 
void signalRatingChanged (int)
 
void signalRatingModified (int)
 Not managed by tracking properties. More...
 

Public Member Functions

QRect drawStarPolygons (QPainter *p, int numberOfStars) const
 
bool hasFading () const
 
bool hasTracking () const
 
int maximumVisibleWidth () const
 
int rating () const
 
 RatingComboBoxWidget (QWidget *const parent=nullptr)
 
RatingComboBox::RatingValue ratingValue () const
 
void setFading (bool fading)
 
void setRating (int val)
 
void setRatingValue (RatingComboBox::RatingValue value)
 
void setTracking (bool tracking)
 
void setVisible (bool visible) override
 
void setVisibleImmediately ()
 
void startFading ()
 
void stopFading ()
 

Static Public Member Functions

static QIcon buildIcon (int rate, int size)
 
static QPolygon starPolygon ()
 

Protected Slots

void setFadingValue (int value)
 
void slotRatingChanged (int)
 

Protected Member Functions

void applyFading (QPixmap &pix)
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 
void regeneratePixmaps ()
 
int regPixmapWidth () const
 
void setupTimeLine ()
 
QPixmap starPixmap () const
 
QPixmap starPixmapDisabled () const
 
QPixmap starPixmapFilled () const
 

Protected Attributes

QPolygon m_starPolygon
 
QSize m_starPolygonSize
 
RatingComboBox::RatingValue m_value
 

Constructor & Destructor Documentation

◆ RatingComboBoxWidget()

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

Internal sub-classing the classic RatingWidget, this provides support for the Null and NoRating states.

References m_value, Digikam::RatingComboBox::Null, Digikam::RatingWidget::regeneratePixmaps(), Digikam::RatingWidget::signalRatingChanged(), and slotRatingChanged().

Member Function Documentation

◆ applyFading()

void Digikam::RatingWidget::applyFading ( QPixmap &  pix)
protectedinherited

◆ buildIcon()

QIcon Digikam::RatingWidget::buildIcon ( int  rate,
int  size 
)
staticinherited

◆ drawStarPolygons()

QRect Digikam::RatingStarDrawer::drawStarPolygons ( QPainter *  p,
int  numberOfStars 
) const
inherited

◆ hasFading()

◆ hasTracking()

bool Digikam::RatingWidget::hasTracking ( ) const
inherited

◆ maximumVisibleWidth()

int Digikam::RatingWidget::maximumVisibleWidth ( ) const
inherited

◆ mouseMoveEvent()

void Digikam::RatingWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ mousePressEvent()

void Digikam::RatingWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ mouseReleaseEvent()

void Digikam::RatingWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotectedinherited

◆ paintEvent()

◆ rating()

int Digikam::RatingWidget::rating ( ) const
inherited

◆ ratingValue()

RatingComboBox::RatingValue Digikam::RatingComboBoxWidget::ratingValue ( ) const

References m_value.

◆ ratingValueChanged

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

◆ regeneratePixmaps()

void Digikam::RatingWidget::regeneratePixmaps ( )
protectedinherited

Referenced by RatingComboBoxWidget().

◆ regPixmapWidth()

int Digikam::RatingWidget::regPixmapWidth ( ) const
protectedinherited

◆ setFading()

void Digikam::RatingWidget::setFading ( bool  fading)
inherited

◆ setFadingValue

void Digikam::RatingWidget::setFadingValue ( int  value)
protectedslotinherited

◆ setRating()

◆ setRatingValue()

◆ setTracking()

void Digikam::RatingWidget::setTracking ( bool  tracking)
inherited

◆ setupTimeLine()

void Digikam::RatingWidget::setupTimeLine ( )
protectedinherited

◆ setVisible()

void Digikam::RatingWidget::setVisible ( bool  visible)
overrideinherited

◆ setVisibleImmediately()

void Digikam::RatingWidget::setVisibleImmediately ( )
inherited

◆ signalRatingChanged

◆ signalRatingModified

void Digikam::RatingWidget::signalRatingModified ( int  )
signalinherited

◆ slotRatingChanged

void Digikam::RatingComboBoxWidget::slotRatingChanged ( int  rating)
protectedslot

◆ starPixmap()

QPixmap Digikam::RatingWidget::starPixmap ( ) const
protectedinherited

Referenced by paintEvent().

◆ starPixmapDisabled()

QPixmap Digikam::RatingWidget::starPixmapDisabled ( ) const
protectedinherited

◆ starPixmapFilled()

QPixmap Digikam::RatingWidget::starPixmapFilled ( ) const
protectedinherited

◆ starPolygon()

QPolygon Digikam::RatingWidget::starPolygon ( )
staticinherited

◆ startFading()

void Digikam::RatingWidget::startFading ( )
inherited

◆ stopFading()

void Digikam::RatingWidget::stopFading ( )
inherited

Member Data Documentation

◆ m_starPolygon

QPolygon Digikam::RatingStarDrawer::m_starPolygon
protectedinherited

◆ m_starPolygonSize

QSize Digikam::RatingStarDrawer::m_starPolygonSize
protectedinherited

◆ m_value

RatingComboBox::RatingValue Digikam::RatingComboBoxWidget::m_value
protected

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