Review Request 115712: Do not show OSD for invalid percentage i.e -1 or 109

Martin Klapetek martin.klapetek at gmail.com
Thu Feb 13 06:54:08 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115712/#review49692
-----------------------------------------------------------



src/shell/osd.cpp
<https://git.reviewboard.kde.org/r/115712/#comment34968>

    First thing - coding style dictates {} even for oneliners ;)
    
    Then - this will not show the OSD on the keypress and thus will not provide any feedback to the user, giving the impression of something broken. If it's full, we want to show it's full. So let's cap the value, you can use qBound for that.


- Martin Klapetek


On Feb. 13, 2014, 7:51 a.m., Bhushan Shah wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115712/
> -----------------------------------------------------------
> 
> (Updated Feb. 13, 2014, 7:51 a.m.)
> 
> 
> Review request for Plasma and Martin Klapetek.
> 
> 
> Repository: plasma-framework
> 
> 
> Description
> -------
> 
> $summary
> 
> Actually this will never happen as OSD will be triggered by applications only but better to check it.
> 
> 
> Diffs
> -----
> 
>   src/shell/osd.cpp e94d225 
> 
> Diff: https://git.reviewboard.kde.org/r/115712/diff/
> 
> 
> Testing
> -------
> 
> qdbus org.kde.plasma_shell /org/kde/osdService org.kde.osdService.volumeChanged 203
> qdbus org.kde.plasma_shell /org/kde/osdService org.kde.osdService.volumeChanged -40
> 
> OSD does not show up
> 
> 
> Thanks,
> 
> Bhushan Shah
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140213/dc486ea8/attachment.html>


More information about the Plasma-devel mailing list