mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
plasma: use specialized QImage constructor instead of constructing and loading
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1b15162b50
commit
35cb26227d
1 changed files with 1 additions and 2 deletions
|
@ -560,8 +560,7 @@ bool WallpaperPrivate::findInCache(const QString &key, unsigned int lastModified
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QImage image;
|
QImage image(cache, imageFormat);
|
||||||
image.load(cache, imageFormat);
|
|
||||||
emit q->renderCompleted(image);
|
emit q->renderCompleted(image);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue