[Differential] [Request, 10 lines] D4247: KIconEngine: Center icon in requested rect
David Rosca
noreply at phabricator.kde.org
Sun Jan 22 16:42:43 UTC 2017
drosca created this revision.
drosca added a reviewer: Frameworks.
Restricted Application added a project: Frameworks.
REVISION SUMMARY
Match the behavior of Qt's internal icon engines.
TEST PLAN
Rendering is the same for unaffected icons + highdpi still works.
Example case: Render icon into QRect(0, 0, 12, 16) - KIconLoader returns QSize(12, 12)
icon and KIconEngine would draw it at the top of the rect. This patch centers the
icon in provided rect instead.
REPOSITORY
R302 KIconThemes
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D4247
AFFECTED FILES
src/kiconengine.cpp
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: drosca, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170122/6c3c88ab/attachment.html>
More information about the Kde-frameworks-devel
mailing list