[FrameSvg] Use QPixmap::mask() instead of deprecated convoluted way via alphaChannel()
QPixmap::alphaChannel() is deprecated. Differential Revision: https://phabricator.kde.org/D7614
This commit is contained in:
parent
a8ce2e85ec
commit
5921b2a70c
@ -323,7 +323,7 @@ QRegion FrameSvg::mask() const
|
|||||||
QRegion result;
|
QRegion result;
|
||||||
|
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
obj = new QRegion(QBitmap(d->alphaMask().alphaChannel().createMaskFromColor(Qt::black)));
|
obj = new QRegion(QBitmap(d->alphaMask().mask()));
|
||||||
result = *obj;
|
result = *obj;
|
||||||
d->frame->cachedMasks.insert(id, obj);
|
d->frame->cachedMasks.insert(id, obj);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user