Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,8 @@ public: ...@@ -72,7 +72,8 @@ public:
if ((pixmap.width() > m_iconSize.width()) if ((pixmap.width() > m_iconSize.width())
|| (pixmap.height() > m_iconSize.height())) || (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, QPoint offset((m_iconSize.width() - pixmap.width()) / 2,
(m_iconSize.height() - pixmap.height()) / 2); (m_iconSize.height() - pixmap.height()) / 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment