Bug 438484 - Allow clipboard items to be draggable
Summary: Allow clipboard items to be draggable
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 5.22.0
Platform: Other Other
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-12 01:11 UTC by Podagric
Modified: 2023-05-07 06:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Podagric 2021-06-12 01:11:04 UTC
SUMMARY
Although it is possible to drag the image directly from the notification, it is not possible to do this when it is in klipper history.
This would be very useful for a more mouse-based workflow or for touchscreens.

STEPS TO REPRODUCE
1. Be sure to disable the option to ignore images in clipboard
2. Capture a screenshot with spectacle and copy it to clipboard
3. Try dragging it from klipper to another program

OBSERVED RESULT
Doesn't work at all

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 1 Nate Graham 2021-06-15 22:42:53 UTC
Cool idea!
Comment 2 Bug Janitor Service 2023-04-12 16:41:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2823
Comment 3 Fushan Wen 2023-05-07 06:38:31 UTC
Git commit 445571fb9821a6e184fa21ead89a1138594c1fd3 by Fushan Wen.
Committed on 07/05/2023 at 06:23.
Pushed by fusionfuture into branch 'master'.

applets/clipboard: make list items draggable

This allows copying text/image without interfering with the current clipboard
item.

Requires Qt 6.5 (https://github.com/qt/qtdeclarative/commit/17318c4805d089f10c25f8165dae7d1f908bd311)
FIXED-IN: 6.0

M  +5    -1    applets/clipboard/contents/ui/ClipboardItemDelegate.qml
M  +12   -5    applets/clipboard/contents/ui/ImageItemDelegate.qml
M  +8    -1    applets/clipboard/contents/ui/TextItemDelegate.qml
M  +8    -1    applets/clipboard/contents/ui/UrlItemDelegate.qml
M  +3    -3    klipper/historyimageitem.cpp
M  +1    -1    klipper/historyimageitem.h
M  +6    -8    klipper/historyitem.h
M  +2    -2    klipper/popupproxy.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/445571fb9821a6e184fa21ead89a1138594c1fd3