remove 3rdparty SPMediaKeyTap (#239)

This commit is contained in:
Martin Delille
2019-08-11 20:44:32 +02:00
committed by Jonas Kvinge
parent 4f52ceb3e0
commit 0e97f99f93
15 changed files with 8 additions and 679 deletions

View File

@@ -475,11 +475,8 @@ void SongSourceDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op
const Song::Source &source = Song::Source(index.data().toInt());
QPixmap pixmap = LookupPixmap(source, option_copy.decorationSize);
float device_pixel_ratio = 1.0f;
#ifdef Q_OS_MACOS
QWidget *parent_widget = reinterpret_cast<QWidget*>(parent());
device_pixel_ratio = mac::GetDevicePixelRatio(parent_widget);
#endif
int device_pixel_ratio = parent_widget->devicePixelRatio();
// Draw the pixmap in the middle of the rectangle
QRect draw_rect(QPoint(0, 0), option_copy.decorationSize / device_pixel_ratio);