Review Request 123137: High DPI pixmap support in Dolphin

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Fri Mar 27 07:21:00 GMT 2015



> On March 26, 2015, 11:11 p.m., Emmanuel Pescosta wrote:
> > src/kitemviews/private/kpixmapmodifier.h, lines 33-51
> > <https://git.reviewboard.kde.org/r/123137/diff/1/?file=356716#file356716line33>
> >
> >     What if we use the dpr from the given pixmap and let the size be unscaled?
> 
> David Edmundson wrote:
>     yeah, I wasn't sure about this either.
>     
>     anything dealing with QPixmaps should be device-pixels:
>     for example QPixmap::scale(10,10) will always make it 10,10 pixels no matter what dpr is set. 
>     
>     everything else should be device independent pixles
>     for example QIcon::fromTheme().pixmap(10,10) potentially returns a pixmap which is 20,20
>     
>     So the question becomes:
>     What does KPixmapModifier count as?
>     
>     an extention of QPixmap or a something else?
>     
>     
>     Given we can now kill KPixmapModifier::scale (from that other patch), we can call this class something different and then maybe avoid the confusion.

> Given we can now kill KPixmapModifier::scale (from that other patch), we can call this class something different and then maybe avoid the confusion.

+1


- Emmanuel


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


On March 26, 2015, 4:51 p.m., David Edmundson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123137/
> -----------------------------------------------------------
> 
> (Updated March 26, 2015, 4:51 p.m.)
> 
> 
> Review request for Dolphin, Christoph Feck and Marco Martin.
> 
> 
> Repository: dolphin
> 
> 
> Description
> -------
> 
> Quite a lot of changes, Dolphin does a /lot/ of special pixmap caching and manipulating.
> 
> Changes are in branch davidedmundson/highdpi
> 
> ----
> 
> 
> Make KPixmapModifier::applyFrame handle high DPI images
> 
> 
> Paint icons at the correct size
> 
> 
> squash me with a some other commit in kitemlistwidgetinformant
> 
> 
> Copy device pixel ratio from original pixmap inside KPixmapModifier::scale
> 
> 
> Create drag pixmaps which match the device pixel ratio
> 
> 
> Provide scaled pixmaps in the main file model
> 
> 
> Enable high DPI pixmaps in Dolphin
> 
> 
> Center align pixmaps in a high DPR friendly way
> 
> 
> Diffs
> -----
> 
>   src/kitemviews/kfileitemlistview.cpp d249bef 
>   src/kitemviews/kfileitemmodelrolesupdater.cpp c18d658 
>   src/kitemviews/kitemlistcontroller.cpp a9ebf97 
>   src/kitemviews/kitemlistwidget.cpp 3eb6b1d 
>   src/kitemviews/kstandarditemlistwidget.h 8264522 
>   src/kitemviews/kstandarditemlistwidget.cpp f663b87 
>   src/kitemviews/private/kpixmapmodifier.h e8ca11a 
>   src/kitemviews/private/kpixmapmodifier.cpp c564ecc 
>   src/main.cpp e8d6c2d 
>   src/panels/information/pixmapviewer.cpp 0053e43 
> 
> Diff: https://git.reviewboard.kde.org/r/123137/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> David Edmundson
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20150327/071116dc/attachment.htm>


More information about the kfm-devel mailing list