OSDN Git Service

plasma: use QImageReader to find the wallpaper image size, fallback to the actual...
authorIvailo Monev <xakepa10@gmail.com>
Fri, 11 Aug 2023 21:59:15 +0000 (00:59 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 11 Aug 2023 22:00:36 +0000 (01:00 +0300)
commite6478758f6b03789c31bbf57d2753e66365a0343
treeb75ff077047e880f95658c9c6b027550e4f75167
parentf23a2f7a7b0c676f9bc827f50d1f1574003cb19f
plasma: use QImageReader to find the wallpaper image size, fallback to the actual image size

fixes thread-safety issue and reduces the memory usage slightly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
plasma/wallpapers/image/backgroundlistmodel.cpp
plasma/wallpapers/image/backgroundlistmodel.h