Dev query : To get the path of the current track playing from ratingValueChanged()

Phalgun Guduthur phalgun.guduthur at gmail.com
Sun Mar 4 14:03:46 UTC 2012


Hello

I'm trying to write a patch along my GSoC proposal ( I have already mailed
in the first rough draft, please review it if possible, any feedback is
welcome! ).

What I'm trying to do is, when a user changes the rating of a song, the
song resource's nao:rating should be updated along with the normal id3 tag
updation carried out by Amarok.

The slot for this is in src/playlist/view/listview/InlineEditorWidget.cpp
which calls the function ratingValueChanged. (line 159 and 270)

But I'm stuck on getting the path of the current track whose rating is
being modified.
I tried using Playlist::Item::track()
But it didn't work. The ratingWidget disappeared after this.

Any help in this regard will be appreciated.

Thank you
Phalgun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20120304/4cb0933b/attachment.html>


More information about the Amarok-devel mailing list