Making the rating painter class public
Frank Osterfeld
frank.osterfeld at gmx.de
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).
Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080225/04f93b31/attachment.sig>
More information about the kde-core-devel
mailing list