Bug 283457

Summary: Amarok Current Track should allow to select text for copying it
Product: [Applications] amarok Reporter: Māris Nartišs <maris.kde>
Component: Context View/Current TrackAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: wishlist CC: lfranchi, simon.esneault, vianasw
Priority: NOR    
Version: 2.4.3   
Target Milestone: 2.5   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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