Commit 4afa55e2 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[KDecoration] Use QIcon::paint

Properly takes into account device pixel ratio. It's what Breeze decoration code is doing.

Differential Revision: https://phabricator.kde.org/D25691
parent ae11cfc2
......@@ -229,8 +229,7 @@ namespace Oxygen
{
const QRectF iconRect( geometry().topLeft(), m_iconSize );
const QPixmap pixmap = decoration()->client().data()->icon().pixmap( m_iconSize.width() );
painter->drawPixmap(iconRect.center() - QPoint(pixmap.width()/2, pixmap.height()/2), pixmap);
decoration()->client().data()->icon().paint(painter, iconRect.toRect());
painter->restore();
return;
......
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