Center icons properly if size doesn't fit

Authored by broulik on Oct 18 2018, 8:41 AM.

Description

Center icons properly if size doesn't fit

When requesting an icon size that cannot be served, the pixmap is centered in the requested size.
By using the original pixmap's device pixel ratio we ensure the padded pixmap is painted correctly.

BUG: 396990

Differential Revision: https://phabricator.kde.org/D16291

Details

Committed
broulikOct 18 2018, 8:41 AM
Differential Revision
D16291: Center icons properly if size doesn't fit
Parents
R302:139f5a83f17e: Use new syntax
Branches
Unknown
Tags
Unknown