From kde-panel-devel Fri Jan 27 13:21:05 2012 From: "Commit Hook" Date: Fri, 27 Jan 2012 13:21:05 +0000 To: kde-panel-devel Subject: Re: Review Request: Fix plasma popup alignment Message-Id: <20120127132105.5289.46216 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=132767081518848 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1704011228834756025==" --===============1704011228834756025== Content-Type: multipart/alternative; boundary="===============2085550616282635074==" --===============2085550616282635074== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- 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 2df720859b5164143c064d9aa4f491bd= e920a0ad 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 v= alue 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 > = > --===============2085550616282635074== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
This is an automatically generated e-mail. To reply, visit: http://git.revie= wboard.kde.org/r/103595/

This revie=
w has been submitted with commit 2df720859b5164143c064d9aa4f491bde920a0ad b=
y Nikita Churaev to branch KDE/4.8.

- Commit


On December 31st, 2011, 5:18 a.m., Nikita Churaev wrote:

Review request for Plasma.
By Nikita Churaev.

Updated Dec. 31, 2011, 5:18 a.m.

Descripti= on

Right-aligned popups are one pixel away from right edge of t=
he screen and top-aligned popups (when the panel is on top) are one pixel i=
nside panel. This is because the bug in QRect, where right() and bottom() v=
alue return value that is less than the true value by one. This is a featur=
e-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.

Testing <= /h1>
Works as expected.

Diffs=

  • plasma/corona.cpp (366a9df)

View Diff

--===============2085550616282635074==-- --===============1704011228834756025== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============1704011228834756025==--