plasma: use specialized QImage constructor instead of constructing and loading

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-24 18:31:40 +03:00
parent 1b15162b50
commit 35cb26227d

View file

@ -560,8 +560,7 @@ bool WallpaperPrivate::findInCache(const QString &key, unsigned int lastModified
}
}
QImage image;
image.load(cache, imageFormat);
QImage image(cache, imageFormat);
emit q->renderCompleted(image);
return true;