Add source icon for Jamendo songs.

Rely on URL's host. This doesn't sound perfect to me, but I can't think of a better way to do this.
Maybe making a comparison with one the Jamendo's streaming URLs host would have been better, but I think "api.jamendo.com" is very unlikely to change someday.
This commit is contained in:
Arnaud Bienner 2012-03-05 01:13:11 +01:00
parent 0969432820
commit 790808c47d
1 changed files with 2 additions and 0 deletions

View File

@ -461,6 +461,8 @@ QPixmap SongSourceDelegate::LookupPixmap(const QUrl& url, const QSize& size) con
icon = QIcon(":icons/22x22/spotify.png");
} else if (url.scheme() == "file") {
icon = IconLoader::Load("folder-sound");
} else if (url.host() == "api.jamendo.com") {
icon = QIcon(":/providers/jamendo.png");
}
}
pixmap = icon.pixmap(size.height());