Review Request 119866: Thumbnails in Klipper
Martin Gräßlin
mgraesslin at kde.org
Thu Aug 21 05:39:54 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119866/#review64951
-----------------------------------------------------------
I did not do a proper review for the QML part - there are more adapt devs for that ;-) But I have a few comments on the C++ side. In general I would like to have the debug statements removed before it goes into master branch.
applets/clipboard/contents/ui/ClipboardItemDelegate.qml
<https://git.reviewboard.kde.org/r/119866/#comment45375>
what happens if you copy a normal http:// url? Is it still shown?
klipper/clipboardjob.cpp
<https://git.reviewboard.kde.org/r/119866/#comment45376>
emtpy new lines
klipper/clipboardjob.cpp
<https://git.reviewboard.kde.org/r/119866/#comment45377>
signal emits with const-ref, so please use:
(const KFileItem &item, const QPixmap &preview)
klipper/clipboardjob.cpp
<https://git.reviewboard.kde.org/r/119866/#comment45378>
failed also emits const-ref
klipper/clipboardjob.cpp
<https://git.reviewboard.kde.org/r/119866/#comment45379>
why a capture of [&]? Looks like you only need [this]
klipper/clipboardjob.cpp
<https://git.reviewboard.kde.org/r/119866/#comment45380>
QStringLiteral for "url", "preview" and "icon" - as they are used multiple times I'd suggest to make them static const variables.
- Martin Gräßlin
On Aug. 20, 2014, 8:29 p.m., Sebastian Kügler wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119866/
> -----------------------------------------------------------
>
> (Updated Aug. 20, 2014, 8:29 p.m.)
>
>
> Review request for Plasma.
>
>
> Repository: plasma-workspace
>
>
> Description
> -------
>
> This patch paints previews of copied images, instead of displaying the urls in plain text.
>
> The display is limited to 4 images right now. The painting of the delegates is in line with the recommendations from the HIG at https://techbase.kde.org/Projects/Usability/HIG/Layout/Image
>
> It has a few rough edges:
> - not all images get thumbnails -- need to investigate why
> - vertical alignment throughout the list is quite bad, this is the case already, I will fix that separately
> - I want to add an indicator that it's more than 4 files (if applicable), working on that still
> - When no preview is loaded, it should show an icon, almost done, with some fixes
>
> I'd like some feedback on the code, so that with the remaining issues fixed, it can get in.
>
>
> Diffs
> -----
>
> applets/clipboard/contents/ui/ClipboardItemDelegate.qml 8eecb80cff1b5535b43242fe114fdaeae5ad510a
> applets/clipboard/contents/ui/clipboard.qml ac784d2a46961083aad24eb142b9befa74ec61bd
> klipper/CMakeLists.txt 660b0d174f9d41eec095d83d640111d1c340fb17
> klipper/clipboardjob.cpp d84d01471440eed670c459e775867eda25fdbc58
> klipper/historyurlitem.cpp fb2a766b39abe2040555ee694c55337481003bf9
> klipper/org.kde.plasma.clipboard.operations 813aafa96440304b918ef06c3863bd7c4527d62a
>
> Diff: https://git.reviewboard.kde.org/r/119866/diff/
>
>
> Testing
> -------
>
> Copied images and files in Dolphin, see them showing up in Klipper. Made sure that the previews are only loaded when needed, so no additional memory taken when the systray / klipper popup is not open.
>
>
> File Attachments
> ----------------
>
> Before
> https://git.reviewboard.kde.org/media/uploaded/files/2014/08/20/ebdde483-136e-44da-8735-f98ba88485a9__klipper-before.png
> Klipper with thumbnails
> https://git.reviewboard.kde.org/media/uploaded/files/2014/08/20/65749cc3-3fed-4c9b-9a28-b9791b8e93d8__klipper-thumbnails.png
>
>
> Thanks,
>
> Sebastian Kügler
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140821/cc4ee941/attachment-0001.html>
More information about the Plasma-devel
mailing list