Review Request: Fix plasma popup alignment

Commit Hook null at kde.org
Fri Jan 27 13:21:05 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103595/#review10145
-----------------------------------------------------------


This review has been submitted with commit 2df720859b5164143c064d9aa4f491bde920a0ad by Nikita Churaev to branch KDE/4.8.

- Commit Hook


On Dec. 31, 2011, 5:18 a.m., Nikita Churaev wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103595/
> -----------------------------------------------------------
> 
> (Updated Dec. 31, 2011, 5:18 a.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Description
> -------
> 
> Right-aligned popups are one pixel away from right edge of the screen and top-aligned popups (when the panel is on top) are one pixel inside panel. This is because the bug in QRect, where right() and bottom() value return value that is less than the true value by one. This is a feature-bug that Qt developers aren't going to fix because of compatiability reasons. My patch replaces rect.right() and rect.bottom() with (rect.x() + rect.width()) and (rect.y() + rect.height()) respectively.
> 
> 
> Diffs
> -----
> 
>   plasma/corona.cpp 366a9df 
> 
> Diff: http://git.reviewboard.kde.org/r/103595/diff/diff
> 
> 
> Testing
> -------
> 
> Works as expected.
> 
> 
> Thanks,
> 
> Nikita Churaev
> 
>

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


More information about the Plasma-devel mailing list