Review Request 126222: Fix rating widget flickering when selecting rating with mouse
Xuetian Weng
wengxt at gmail.com
Wed Dec 2 16:34:39 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126222/
-----------------------------------------------------------
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/aeede224/attachment.html>
More information about the Kde-frameworks-devel
mailing list