From 3a7d470692fa9f91abb517bc48db48febbee63a8 Mon Sep 17 00:00:00 2001 From: druid23 Date: Mon, 23 Aug 2010 21:02:29 +0100 Subject: [PATCH] Show additional track information in playlist (where available) modified: playlistmainwindow.cpp --- playlistmainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playlistmainwindow.cpp b/playlistmainwindow.cpp index c21f18d..a6c8a5c 100644 --- a/playlistmainwindow.cpp +++ b/playlistmainwindow.cpp @@ -252,6 +252,12 @@ int PlayListMainWindow::parsePlayListItem(QDomNode *node, QString *extension, bo *hasArt = (!art.isNull() && !art.isEmpty()); *extension = getExtension(el->path, NULL); } + QString title = node->toElement().namedItem("title").toElement().text(); + QString artist = node->toElement().namedItem("artist").toElement().text(); + QString album = node->toElement().namedItem("album").toElement().text(); + if (0 < artist.length() || 0 < album.length()) { + el->name = "" + title + "\n" + artist + " - " + album; + } this->mContents->append(*el); ++leafCt; delete el; -- 1.7.9.5