SongSourceDelegate: Respect device pixel ratio

This commit is contained in:
Jonas Kvinge
2023-03-29 00:04:34 +02:00
parent 92adc18b8f
commit 1d3a837f7a
2 changed files with 8 additions and 13 deletions

View File

@@ -201,7 +201,7 @@ class SongSourceDelegate : public PlaylistDelegateBase {
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
private:
QPixmap LookupPixmap(const Song::Source source, const QSize size) const;
QPixmap LookupPixmap(const Song::Source source, const QSize size, const qreal device_pixel_ratio) const;
};
class RatingItemDelegate : public PlaylistDelegateBase {