Making the rating painter class public

Frank Osterfeld frank.osterfeld at
Mon Feb 25 22:12:00 GMT 2008

On Monday 25 February 2008, Sebastian Trüg wrote:

>        void draw( QPainter* painter, const QRect& rect, int rating, int 
hoverRating = -1 );

I don't get what hoverRating means here from reading the header, so 
documentation wouldn't hurt.

>         /**
>          * Calculate the rating value from mouse position pos.
>          *
>          * \return The rating corresponding to pos or -1 if pos is
>          * outside of the configured rect.
>          */
>         int fromPosition( const QRect& rect, const QPoint& pos );

That should be const I think - (and isn't int ratingFromPosition() const more 
clear? This is a RatingPainter, not a Rating after all).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list