Skip to content
Commit a3d0491d authored by Fushan Wen's avatar Fushan Wen
Browse files

wallpapers/image: resize svg wallpaper to requested size

QImage is rasterized, which means it needs a defined size. If we need to
resize a svg image, the svg image should be loaded by QSvgRenderer and then
QPainter class is used to draw the image onto a new QImage with the desired size.

Plasma::Svg can help wrap the whole process and provide a cached image
if the wallpaper is loaded again.

BUG: 469294
FIXED-IN: 5.27.6
parent dd1e296c
Pipeline #405869 passed with stage
in 18 minutes and 56 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment