KDEUI
kratingwidget.cpp
Go to the documentation of this file.
void setAlignment(Qt::Alignment align)
The alignment of the stars in the drawing rect.
Definition: kratingwidget.cpp:116
void setPixmapSize(int size)
Set the recommended size of the pixmaps.
Definition: kratingwidget.cpp:84
void setHalfStepsEnabled(bool enabled)
If half steps are enabled (the default) then one rating step corresponds to half a star...
Definition: kratingwidget.cpp:189
Utility class that draws a row of stars for a rating value.
Definition: kratingpainter.h:50
void ratingChanged(unsigned int rating)
This signal is emitted when the rating is changed.
unsigned int rating() const
bool halfStepsEnabled() const
If half steps are enabled one star equals to 2 rating points and uneven rating values result in half-...
void setOnlyPaintFullSteps(bool)
Definition: kratingwidget.cpp:197
int maxRating() const
void setPixmap(const QPixmap &)
Set the pixap to be used to display a rating step.
Definition: kratingwidget.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Wed Oct 19 2016 23:26:34 by doxygen 1.8.12 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2016 The KDE developers.
Generated on Wed Oct 19 2016 23:26:34 by doxygen 1.8.12 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.