Skip to content
Commit 987238ac 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

(cherry picked from commit a3d0491d)
parent 1e25653e
Pipeline #405882 failed with stage
in 15 minutes and 45 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