[PlasmaCore.IconItem] Refactor source handling for different types

Authored by kmaterka on Mar 31 2020, 8:37 PM.

Description

[PlasmaCore.IconItem] Refactor source handling for different types

Summary: There are 3 possible strategies: QIcon, QImage and SVG. This change moves logic of each of these strategies into separate class.

Test Plan: Should behave exactly the same

Reviewers: Plasma, broulik, apol, davidedmundson, Frameworks

Reviewed By: Plasma, davidedmundson

Subscribers: mart, davidre, cblack, kde-frameworks-devel, Plasma

Tags: Frameworks

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

Details

Committed
kmaterkaApr 24 2020, 12:49 PM
Reviewer
Plasma
Differential Revision
D28470: [PlasmaCore.IconItem] Refactor source handling for different types
Parents
R242:25ce2b90dab1: Prefer QIcon::pixmap(QWindow*, ...) overload
Branches
Unknown
Tags
Unknown