| 418 | } |
| 419 | |
| 420 | int StarEditor::starAtPosition(int x) |
| 421 | { |
| 422 | int star = (x / (myStarRating.sizeHint().width() / myStarRating.maxStarCount())) + 1; |
| 423 | if (star <= 0 || star > myStarRating.maxStarCount()) |
| 424 | return -1; |
| 425 | |
| 426 | return star; |
| 427 | } |
nothing calls this directly
no test coverage detected