Bug 304427

Summary: Half-star ratings in the view are rendered wrong
Product: [Frameworks and Libraries] kdelibs Reporter: Daniel Faust <hessijames>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: cfeck, dolphin-bugs-null
Priority: NOR Keywords: reproducible
Version: 4.9.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.2
Attachments: Screenshow showing that the half star is rendered with the yellow part on the right side

Description Daniel Faust 2012-08-02 09:42:20 UTC
Stars that represent half a rating point are rendered with the yellow part on the right side, instead of the left.

Reproducible: Always

Steps to Reproduce:
1. Use adjust view properties -> additional information -> check ratings in order to enable the display of ratings in the file view

Actual Results:  
Half stars are rendered with the yellow part on the right side.

Expected Results:  
Half stars should be rendered with the yellow part on the left side.
Comment 1 Daniel Faust 2012-08-02 09:43:33 UTC
Created attachment 72889 [details]
Screenshow showing that the half star is rendered with the yellow part on the right side
Comment 2 Frank Reininghaus 2012-08-06 09:38:35 UTC
Thanks for the bug report! I can confirm this issue.
Comment 3 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:18:29 UTC
Resetting assignee to default as per bug #305719
Comment 4 Christoph Feck 2012-09-23 17:11:08 UTC
Git commit a24fdb5e0ab630623d6cf4ee6f41bc413a8b4e5a by Christoph Feck.
Committed on 23/09/2012 at 19:05.
Pushed by cfeck into branch 'KDE/4.9'.

Fix "half-stars" rendering in KRatingPainter

When the application has not specified a layout direction,
QPainter defaults to Qt::LayoutDirectionAuto. Assume LTR
in this case.
FIXED-IN: 4.9.2

M  +4    -4    kdeui/widgets/kratingpainter.cpp

http://commits.kde.org/kdelibs/a24fdb5e0ab630623d6cf4ee6f41bc413a8b4e5a
Comment 5 Frank Reininghaus 2012-09-23 18:55:48 UTC
Thanks for you awesome work, Christoph!