[FrameSvg] Use QPixmap::mask() instead of deprecated convoluted way via alphaChannel()
ClosedPublic

Authored by broulik on Aug 30 2017, 9:46 AM.

Details

Summary

QPixmap::alphaChannel() is deprecated.

Test Plan

Corners of popups still nicely rounded (tested with Oxygen which has much more rounded borders than Breeze)
Also saves half a millisecond on startup, creates 7 masks for me.

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Aug 30 2017, 9:46 AM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptAug 30 2017, 9:46 AM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Aug 30 2017, 10:04 AM
This revision is now accepted and ready to land.Aug 30 2017, 10:04 AM
This revision was automatically updated to reflect the committed changes.