mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +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;
|
||||
image.load(cache, imageFormat);
|
||||
QImage image(cache, imageFormat);
|
||||
emit q->renderCompleted(image);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue