Commit af1b31d3 authored by Jörg Schummer's avatar Jörg Schummer Committed by Kai Koehne
Browse files

QmlDesigner.ItemLibrary: Scale resource images using bi-linear filtering

Task-number: BAUHAUS-504
parent fcedcc51
......@@ -72,7 +72,8 @@ public:
if ((pixmap.width() > m_iconSize.width())
|| (pixmap.height() > m_iconSize.height()))
return pixmap.scaled(m_iconSize, Qt::KeepAspectRatio);
return pixmap.scaled(m_iconSize, Qt::KeepAspectRatio,
Qt::SmoothTransformation);
QPoint offset((m_iconSize.width() - pixmap.width()) / 2,
(m_iconSize.height() - pixmap.height()) / 2);
......
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