[Kde-hardware-devel] Review Request 123678: Add Output::size and make it report correct size
Daniel Vrátil
dvratil at kde.org
Thu May 7 23:14:48 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123678/#review80066
-----------------------------------------------------------
looks good to me. could you please add a proper documentation to Output::size, ::pos and ::geometry, how it differs from currentMode()->size() and sizeMm etc? We are starting to have to many of those QRect/QSize properties and it is getting confusing. You can just document the Q_PROPERTIES. Oh and add @since 5.4 please.
backends/fake/parser.cpp (line 186)
<https://git.reviewboard.kde.org/r/123678/#comment54929>
Remove whitespace
src/output.h (line 125)
<https://git.reviewboard.kde.org/r/123678/#comment54927>
Remove whitespace
src/output.cpp (line 326)
<https://git.reviewboard.kde.org/r/123678/#comment54928>
Remove whitespace
- Daniel Vrátil
On May 7, 2015, 11:04 p.m., Àlex Fiestas wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123678/
> -----------------------------------------------------------
>
> (Updated May 7, 2015, 11:04 p.m.)
>
>
> Review request for Solid.
>
>
> Repository: libkscreen
>
>
> Description
> -------
>
> We were making some assumptions in Output::geometry like for example
> assuimg that the resolution of the currentMode was actually the output
> size which is not always the case, like for example in a case we were
> already covering of vertical transformed output.
>
> In order to fix this proplerly we are adding a size property to Output
> that backends and fill with whatever value they want and we use it to
> create the QRrect with return in Output::geometry.
>
> QScreen: Whatever QScreen::screenGeometry().size() returns
> Fake: Added a test for singleOutput, the rest is all the same
> XRandR11: Whatever size has currentMode
>
> XRandR: Whatever size CRTC reports.
> Note that crtc is the one in charge of applying transformations so it
> always reports correct geometry, even on scaled or vertical/landscape
> outputs.
>
>
> Diffs
> -----
>
> autotests/configs/multipleoutput.json 4e59b5f
> autotests/configs/singleoutput.json bab8926
> autotests/testconfigserializer.cpp 3e948b6
> backends/fake/parser.cpp 43a5ec5
> backends/qscreen/qscreenoutput.cpp 452ac3b
> backends/xrandr/xrandroutput.h 32c5ddc
> backends/xrandr/xrandroutput.cpp e1e5799
> backends/xrandr1.1/xrandr11.cpp f6b5e46
> src/configserializer.cpp 10739f2
> src/output.h f71b798
> src/output.cpp b47ad3d
>
> Diff: https://git.reviewboard.kde.org/r/123678/diff/
>
>
> Testing
> -------
>
> Besides the autotests, I have checked with kscreen-console reports correct size with a 2x2 scaled output using all backends.
> I have also used plasma and checked that now it is able to properly place dialogs.
>
>
> Thanks,
>
> Àlex Fiestas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20150507/0c129bc5/attachment.html>
More information about the Kde-hardware-devel
mailing list