1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 18:58:55 +01:00

Add tooltip for cover manager's items, which displays artist and album name info. Fixes issue 451

This commit is contained in:
Arnaud Bienner 2011-02-08 22:54:37 +00:00
parent 4cd01a43b7
commit fb36940d5e

View File

@ -287,6 +287,7 @@ void AlbumCoverManager::ArtistChanged(QListWidgetItem* current) {
item->setData(Role_FirstFilename, info.first_filename);
item->setData(Qt::TextAlignmentRole, QVariant(Qt::AlignTop | Qt::AlignHCenter));
item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled);
item->setToolTip(info.artist + " - " + info.album_name);
if (!info.art_automatic.isEmpty() || !info.art_manual.isEmpty()) {
quint64 id = cover_loader_->Worker()->LoadImageAsync(