Review Request 120278: Fixed size hint and positioning of icons in kpagelistview in high dpi mode
Christoph Feck
christoph at maxiom.de
Fri Sep 19 09:35:57 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120278/#review66924
-----------------------------------------------------------
CMakeLists.txt says that Qt 5.2.0 is the minimum required version. If the symbol was added to Qt 5.3 (the Qt docs aren't clear about this), you need the #if's
- Christoph Feck
On Sept. 19, 2014, 8:06 a.m., Hugo Pereira Da Costa wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120278/
> -----------------------------------------------------------
>
> (Updated Sept. 19, 2014, 8:06 a.m.)
>
>
> Review request for KDE Frameworks.
>
>
> Repository: kwidgetsaddons
>
>
> Description
> -------
>
> As mentionned in the title.
>
> Steps to reproduce:
> use latest qt-5.4
> set QT_DEVICE_PIXEL_RATIO to 2
> run oxygen-demo5 --highdpi
> (you need latest from oxygen repository to have the option available)
>
> Code applies already to Qt-5.3 (and does nothing) so no ifdef is needed.
>
> Code is inspired from what is done in QCommonStyle:
> QPixmap pixmap = button->icon.pixmap(button->iconSize, mode, state);
>
> int pixmapWidth = pixmap.width() / pixmap.devicePixelRatio();
> int pixmapHeight = pixmap.height() / pixmap.devicePixelRatio();
>
>
> (line 1247 or so)
>
>
> Diffs
> -----
>
> src/kpageview_p.cpp 5b665cd
>
> Diff: https://git.reviewboard.kde.org/r/120278/diff/
>
>
> Testing
> -------
>
> With/withough high dpi enabled
> any widget style
>
>
> File Attachments
> ----------------
>
> before
> https://git.reviewboard.kde.org/media/uploaded/files/2014/09/19/a01fec9f-06bc-43d6-8bd6-30390f4b5c74__kpageview-old.png
> after
> https://git.reviewboard.kde.org/media/uploaded/files/2014/09/19/464ef761-60e9-455b-8398-b2c71cef6468__kpageview-new.png
>
>
> Thanks,
>
> Hugo Pereira Da Costa
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140919/09c53f33/attachment.html>
More information about the Kde-frameworks-devel
mailing list