The RatingLabel class.
More...
#include <RatingLabel.h>
|
| RatingLabel (QWidget *parent, bool enabled=true) |
|
void | set_rating (Rating rating) |
| Set a rating from one to 5. More...
|
|
Rating | get_rating () const |
|
void | set_offset_y (int offset) |
| The y-offset where the stars should be painted. More...
|
|
|
void | paintEvent (QPaintEvent *e) override |
|
void | focusInEvent (QFocusEvent *e) override |
|
void | focusOutEvent (QFocusEvent *e) override |
|
void | mousePressEvent (QMouseEvent *ev) override |
|
void | mouseReleaseEvent (QMouseEvent *ev) override |
|
void | mouseMoveEvent (QMouseEvent *ev) override |
|
QSize | sizeHint () const override |
|
QSize | minimumSizeHint () const override |
|
◆ set_offset_y()
void Gui::RatingLabel::set_offset_y |
( |
int |
offset | ) |
|
The y-offset where the stars should be painted.
- Parameters
-
◆ set_rating()
void Gui::RatingLabel::set_rating |
( |
Rating |
rating | ) |
|
Set a rating from one to 5.
- Parameters
-