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

Public Member Functions

QRect drawStarPolygons (QPainter *p, int numberOfStars) const
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 RatingComboBoxDelegate (QObject *const parent=nullptr)
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Protected Member Functions

void drawRating (QPainter *painter, const QRect &rect, int rating, bool selectable) const
 

Protected Attributes

QPolygon m_starPolygon
 
QSize m_starPolygonSize
 

Constructor & Destructor Documentation

◆ RatingComboBoxDelegate()

Digikam::RatingComboBoxDelegate::RatingComboBoxDelegate ( QObject *const  parent = nullptr)
explicit

Member Function Documentation

◆ drawRating()

void Digikam::RatingComboBoxDelegate::drawRating ( QPainter *  painter,
const QRect &  rect,
int  rating,
bool  selectable 
) const
protected

◆ drawStarPolygons()

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

◆ paint()

void Digikam::RatingComboBoxDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

References drawRating(), and value.

◆ sizeHint()

QSize Digikam::RatingComboBoxDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Member Data Documentation

◆ m_starPolygon

QPolygon Digikam::RatingStarDrawer::m_starPolygon
protectedinherited

◆ m_starPolygonSize

QSize Digikam::RatingStarDrawer::m_starPolygonSize
protectedinherited

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