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:
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( - QPoint(pixmap.width()/2, pixmap.height()/2), pixmap);
decoration()->client().data()->icon().paint(painter, iconRect.toRect());
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