aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/notifier/popupwidget.cpp4
-rw-r--r--src/plugins/General/statusicon/coverwidget.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp
index a8461d335..f93999ee8 100644
--- a/src/plugins/General/notifier/popupwidget.cpp
+++ b/src/plugins/General/notifier/popupwidget.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2009 by Ilya Kotov *
+ * Copyright (C) 2008-2014 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -103,7 +103,7 @@ void PopupWidget::showMetaData()
if(!pix.isNull())
{
m_pixlabel->setFixedSize(m_coverSize,m_coverSize);
- m_pixlabel->setPixmap(pix.scaled(m_coverSize,m_coverSize));
+ m_pixlabel->setPixmap(pix.scaled(m_coverSize,m_coverSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
}
else
{
diff --git a/src/plugins/General/statusicon/coverwidget.cpp b/src/plugins/General/statusicon/coverwidget.cpp
index c867e08bf..ae886d189 100644
--- a/src/plugins/General/statusicon/coverwidget.cpp
+++ b/src/plugins/General/statusicon/coverwidget.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
+ * Copyright (C) 2009-2014 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -40,5 +40,5 @@ void CoverWidget::paintEvent (QPaintEvent *p)
{
QPainter paint(this);
if(!m_pixmap.isNull())
- paint.drawPixmap(0,0, m_pixmap.scaled(p->rect().size()));
+ paint.drawPixmap(0,0, m_pixmap.scaled(p->rect().size(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
}