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

Signals

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

Public Member Functions

bool hasFading () const
 
bool hasTracking () const
 
int maximumVisibleWidth () const
 
int rating () const
 
 RatingWidget (QWidget *const parent)
 
void setFading (bool fading)
 
void setRating (int val)
 
void setTracking (bool tracking)
 
void setVisible (bool visible) override
 
void setVisibleImmediately ()
 
void startFading ()
 
void stopFading ()
 
 ~RatingWidget () override
 

Static Public Member Functions

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

Protected Slots

void setFadingValue (int value)
 

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
 

Constructor & Destructor Documentation

◆ RatingWidget()

Digikam::RatingWidget::RatingWidget ( QWidget *const  parent)
explicit

◆ ~RatingWidget()

Digikam::RatingWidget::~RatingWidget ( )
override

Member Function Documentation

◆ applyFading()

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

References hasFading().

Referenced by paintEvent().

◆ buildIcon()

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

References starPolygon().

◆ hasFading()

bool Digikam::RatingWidget::hasFading ( ) const

◆ hasTracking()

bool Digikam::RatingWidget::hasTracking ( ) const

◆ maximumVisibleWidth()

int Digikam::RatingWidget::maximumVisibleWidth ( ) const

◆ mouseMoveEvent()

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

◆ mousePressEvent()

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

◆ mouseReleaseEvent()

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

◆ paintEvent()

void Digikam::RatingWidget::paintEvent ( QPaintEvent *  )
overrideprotected

◆ rating()

◆ regeneratePixmaps()

void Digikam::RatingWidget::regeneratePixmaps ( )
protected

◆ regPixmapWidth()

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

◆ setFading()

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

◆ setFadingValue

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

References value.

Referenced by setupTimeLine(), and setVisibleImmediately().

◆ setRating()

◆ setTracking()

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

◆ setupTimeLine()

void Digikam::RatingWidget::setupTimeLine ( )
protected

References setFadingValue().

Referenced by startFading().

◆ setVisible()

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

References startFading(), and stopFading().

◆ setVisibleImmediately()

void Digikam::RatingWidget::setVisibleImmediately ( )

◆ signalRatingChanged

◆ signalRatingModified

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

Not managed by tracking properties.

Referenced by mouseMoveEvent(), mousePressEvent(), and setRating().

◆ starPixmap()

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

◆ starPixmapDisabled()

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

◆ starPixmapFilled()

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

◆ starPolygon()

QPolygon Digikam::RatingWidget::starPolygon ( )
static

◆ startFading()

void Digikam::RatingWidget::startFading ( )

References hasFading(), and setupTimeLine().

Referenced by setVisible().

◆ stopFading()

void Digikam::RatingWidget::stopFading ( )

References hasFading().

Referenced by setVisible().


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