Fix pixelated source icon for currently playing song in playlist

This commit is contained in:
Jonas Kvinge
2020-08-25 21:51:23 +02:00
parent 343d6f9aff
commit 3948af80b8
2 changed files with 10 additions and 10 deletions

View File

@@ -177,12 +177,12 @@ class SongSourceDelegate : public PlaylistDelegateBase {
public:
explicit SongSourceDelegate(QObject *parent);
QString displayText(const QVariant &value, const QLocale &locale) const override;
void paint(QPainter *paint, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
private:
QPixmap LookupPixmap(const Song::Source &source, const QSize &size) const;
mutable QPixmapCache cache_;
mutable QPixmapCache pixmap_cache_;
};
#endif // PLAYLISTDELEGATES_H