Bug 283457 - Amarok Current Track should allow to select text for copying it
Summary: Amarok Current Track should allow to select text for copying it
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Context View/Current Track (show other bugs)
Version: 2.4.3
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: 2.5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 09:52 UTC by Māris Nartišs
Modified: 2024-04-03 18:50 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Māris Nartišs 2011-10-06 09:52:10 UTC
Version:           2.4.3 (using KDE 4.7.1) 
OS:                Linux

Currently it's impossible to select song title, artist and other info displayed in Current Track applet within Amarok main window. When listening to internet radio, sometimes I would like to copy an artists name or song title i.e. to search for a video clip on Youtube etc.

Reproducible: Always



Expected Results:  
It should be possible to select text within Current Track applet and there should be a right click context menu with "Copy" option.
Comment 1 Bug Janitor Service 2024-03-24 14:40:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/amarok/-/merge_requests/66
Comment 2 Tuomas Nurmi 2024-04-03 18:50:18 UTC
Git commit 18b1ce66767e17a75ed8b7bcc130ed4428a44f6c by Tuomas Nurmi.
Committed on 03/04/2024 at 15:22.
Pushed by nurmi into branch 'master'.

Allow copying current track details by clicking.

With text copying from QML Labels being surprisingly hard
(https://bugreports.qt.io/browse/QTBUG-14077), this might be the cleanest
way to implement at least some kind of copy functionality.

A hint of the action is provided with a small copy action icon on hover,
and its opacity is animated on click.

C  +45   -48   src/context/applets/currenttrack/package/contents/ui/CopyArea.qml [from: src/context/applets/currenttrack/package/contents/ui/InfoItem.qml - 050% similarity]
M  +16   -1    src/context/applets/currenttrack/package/contents/ui/InfoItem.qml

https://invent.kde.org/multimedia/amarok/-/commit/18b1ce66767e17a75ed8b7bcc130ed4428a44f6c