-
Committer:
Palo Kisa
-
Date:
2018-01-15 07:27:41 UTC
-
Revision ID:
git-v1:ccb28154c2497f8cc69b34b70c69c5b46f76645c
xdgiconloader: Cache ScalableFollowsColorEntry properly
..by using the QSvgIconEngine under the hood.
This was done previously in be58584d0e6c11feaa6929099885ff2a7d882401,
but was reverted by 81e6ffa52ff2ec6d6bcff7e936b6a7fe04c5bbdb (this
completely lacks any caching and does read/process file and generate
image for each pixmap() call).
In this commit we don't create the (private) QSvgIconEngine manually,
but use the operators <<, >> to achieve it. Thus reducing the chance
to break things with future Qt versions (the (de)serialization will
never change for requested QDataStream::Version).