Commit d1dc2b16 authored by Michael Pyne's avatar Michael Pyne
Browse files

Fix sizes of cover art in the track announcement popup.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=760160
parent 2b3659b7
...@@ -371,7 +371,7 @@ QPixmap CoverManager::coverFromData(const CoverData &coverData, Size size) ...@@ -371,7 +371,7 @@ QPixmap CoverManager::coverFromData(const CoverData &coverData, Size size)
return QPixmap(); return QPixmap();
if(size == Thumbnail) if(size == Thumbnail)
pix->scaled(80, 80, Qt::KeepAspectRatio, Qt::SmoothTransformation); *pix = pix->scaled(80, 80, Qt::KeepAspectRatio, Qt::SmoothTransformation);
QPixmap returnValue = *pix; // Save it early. QPixmap returnValue = *pix; // Save it early.
......
...@@ -471,6 +471,7 @@ void SystemTray::addCoverButton(QWidget *parent, const QPixmap &cover) ...@@ -471,6 +471,7 @@ void SystemTray::addCoverButton(QWidget *parent, const QPixmap &cover)
{ {
QPushButton *coverButton = new QPushButton(parent); QPushButton *coverButton = new QPushButton(parent);
coverButton->setIconSize(cover.size());
coverButton->setIcon(cover); coverButton->setIcon(cover);
coverButton->setFixedSize(cover.size()); coverButton->setFixedSize(cover.size());
coverButton->setFlat(true); coverButton->setFlat(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment