[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:
Kai Uwe Broulik 2017-08-30 12:05:59 +02:00
parent a8ce2e85ec
commit 5921b2a70c

View File

@ -323,7 +323,7 @@ QRegion FrameSvg::mask() const
QRegion result;
if (!obj) {
obj = new QRegion(QBitmap(d->alphaMask().alphaChannel().createMaskFromColor(Qt::black)));
obj = new QRegion(QBitmap(d->alphaMask().mask()));
result = *obj;
d->frame->cachedMasks.insert(id, obj);
}