24 #include "Utils/Pimpl.h" 42 void sig_finished(
bool);
54 Rating get_rating()
const;
63 void paintEvent(QPaintEvent *e)
override;
64 void focusInEvent(QFocusEvent* e)
override;
65 void focusOutEvent(QFocusEvent* e)
override;
66 void mousePressEvent(QMouseEvent *ev)
override;
67 void mouseReleaseEvent(QMouseEvent* ev)
override;
68 void mouseMoveEvent(QMouseEvent *ev)
override;
70 QSize sizeHint()
const override;
71 QSize minimumSizeHint()
const override;
74 void update_rating(Rating rating);
75 Rating calc_rating(QPoint pos)
const;
79 #endif // RATINGLABEL_H The RatingLabel class.
Definition: RatingLabel.h:36
void set_rating(Rating rating)
Set a rating from one to 5.
void set_offset_y(int offset)
The y-offset where the stars should be painted.