SongSourceDelegate: Fix compile with Qt 5

This commit is contained in:
Jonas Kvinge 2023-03-29 00:14:21 +02:00
parent c49cb0c119
commit 7b88c198fe
1 changed files with 4 additions and 0 deletions

View File

@ -480,7 +480,11 @@ QPixmap SongSourceDelegate::LookupPixmap(const Song::Source source, const QSize
}
QIcon icon(Song::IconForSource(source));
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
pixmap = icon.pixmap(size, device_pixel_ratio);
#else
pixmap = icon.pixmap(size);
#endif
QPixmapCache::insert(pixmap_cache_key, pixmap);
return pixmap;