1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Add source icons for JazzRadio and SoundCloud

This commit is contained in:
Arnaud Bienner 2012-08-09 22:36:39 +02:00
parent 1cb0869970
commit 57d3dfc96e
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,8 @@ QIcon DigitallyImportedUrlHandler::icon() const {
return QIcon(":providers/digitallyimported.png");
} else if (scheme() == "sky") {
return QIcon(":providers/skyfm.png");
} else if (scheme() == "jazzradio") {
return QIcon(":providers/jazzradio.png");
}
return QIcon();
}

View File

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