Review Request 126222: Fix rating widget flickering when selecting rating with mouse
Xuetian Weng
wengxt at gmail.com
Wed Dec 2 22:41:30 UTC 2015
> On Dec. 2, 2015, 4:45 p.m., Lamarque Souza wrote:
> > That code was added to fix this bug https://bugs.kde.org/show_bug.cgi?id=171343#c6
Emm.. interesting feature. But code inside mouseMoveEvent looks fishy, and this feature shouldn't be used when halfStepsEnabled is true. I'll try to keep this feature then.
- Xuetian
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126222/#review89052
-----------------------------------------------------------
On Dec. 2, 2015, 4:34 p.m., Xuetian Weng wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126222/
> -----------------------------------------------------------
>
> (Updated Dec. 2, 2015, 4:34 p.m.)
>
>
> Review request for KDE Frameworks and David Faure.
>
>
> Repository: kwidgetsaddons
>
>
> Description
> -------
>
> mousePressed and mouseMoved seems to contains some hack code. I don't know what these hacks are originally for, but it seems that they are not valid anymore and causes problem.
>
> Currently, whenever a mouse move happens, the rating value cycles between 0, 1, 2. This change drops all hack code.
>
>
> Diffs
> -----
>
> src/kratingwidget.cpp d0d2903
>
> Diff: https://git.reviewboard.kde.org/r/126222/diff/
>
>
> Testing
> -------
>
> No flickering anymore when selecting rating.
> Tested with following case, all cases are able to select all possible rating value.
> setMaxRating(2) setHalfStepsEnabled(false)
> setMaxRating(1) setHalfStepsEnabled(false)
> setMaxRating(1) setHalfStepsEnabled(true)
> setMaxRating(5) setHalfStepsEnabled(true)
>
>
> Thanks,
>
> Xuetian Weng
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151202/14ce70f7/attachment.html>
More information about the Kde-frameworks-devel
mailing list