Skip to content
  • Diego Gangl's avatar
    Hide stars when there is no rating · 9a678f07
    Diego Gangl authored and Matthieu Gallien's avatar Matthieu Gallien committed
    Summary:
    This patch hides the rating widget when the rating is 0 stars to reduce visual clutter.
    There are two cases with different behaviour:
    
    - When a rating widget is read-only, only ratings with more than zero stars are  visible
    - When a rating widget isn't read-only, the same rule applies but it also becomes visible on hover or selection (works like the play/delete/enqueue buttons). This way users can still set ratings on tracks with no stars.
    
    {F5857090}
    
    Test Plan: Set readOnly in RatingStar.qml to false to test the hover effect
    
    Reviewers: #elisa, mgallien
    
    Reviewed By: #elisa, mgallien
    
    Subscribers: mgallien, astippich
    
    Tags: #elisa
    
    Differential Revision: https://phabricator.kde.org/D12975
    9a678f07