class KRatingWidget |
|
Displays a rating value as a row of pixmaps.
The KRatingWidget displays a range of stars or other arbitrary pixmaps and allows the user to select a certain number by mouse. See also KRatingPainter
Author Sebastian Trueg |
|
Creates a new rating widget. |
|
The alignment of the stars.
See also setAlignment |
|
If half steps are enabled one star equals to 2 rating
points and uneven rating values result in half-stars being
drawn.
See also setHalfStepsEnabled |
|
The icon used to draw a star. In case a custom pixmap has been set
this value is ignored.
See also setIcon, setCustomPixmap |
|
The layout direction. If RTL the stars
representing the rating value will be drawn from the
right.
See also setLayoutDirection |
|
|
Returns the maximum possible rating. |
|
|
|
|
Returns The current rating. |
|
Emitted if the rating is changed by user interaction (ie. mouse click). A call to setRating does not trigger this signal. |
|
|
|
The alignment of the stars in the drawing rect. All alignment flags are supported. |
|
Set a custom pixmap. |
|
If half steps are enabled (the default) then one rating step corresponds to half a star. |
|
Set a custom icon. Defaults to "rating". |
|
LTR or RTL |
|
Set the maximum allowed rating value. The default is 10 which means that a rating from 1 to 10 is selectable. If max is uneven steps are automatically only allowed full. |
|
Deprecated use setMaxRating( int max ) |
|
Deprecated Use setHalfStepsEnabled |
|
Set the pixap to be used to display a rating step.
By default the "rating" pixmap is loaded.
Deprecated use setCustomPixmap |
|
Set the recommended size of the pixmaps. This is only used for the sizeHint. The actual size is always dependant on the size of the widget itself. |
|
Set the current rating. Calling this method will NOT trigger the ratingChanged signal. |
|
Deprecated use setRating( int max ) |
|
Set the spacing between the pixmaps. The default is 0. |
|
|
The spacing between the rating stars.
See also setSpacing |