Miam-Player  0.8.0
A nice music player
StarRating Class Reference

The StarRating class is reusing the example provided with Qt Framework. More...

#include <starrating.h>

Public Types

enum  EditMode { Editable, NoStarsYet, ReadOnly }
 

Public Member Functions

 StarRating (int starCount=0)
 
void setStarCount (int starCount)
 
int starCount () const
 
void paintStars (QPainter *painter, const QStyleOptionViewItem &option, EditMode mode=ReadOnly) const
 

Static Public Attributes

static int maxStarCount = 5
 

Detailed Description

The StarRating class is reusing the example provided with Qt Framework.

Author
Digia Plc

Member Enumeration Documentation

Enumerator
Editable 
NoStarsYet 
ReadOnly 

Constructor & Destructor Documentation

StarRating::StarRating ( int  starCount = 0)
explicit

Member Function Documentation

void StarRating::paintStars ( QPainter *  painter,
const QStyleOptionViewItem &  option,
EditMode  mode = ReadOnly 
) const

XXX: extract this somewhere?

void StarRating::setStarCount ( int  starCount)
int StarRating::starCount ( ) const
inline

Member Data Documentation

int StarRating::maxStarCount = 5
static

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