[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Images in packages
From:       Alex Merry <kde () randomguy3 ! me ! uk>
Date:       2013-01-27 14:57:24
Message-ID: 51054054.4000503 () randomguy3 ! me ! uk
[Download RAW message or body]

Plasma::Svg's image search doesn't appear to be able to find images in a
plasmoid's package.

There is code in Plasma::SvgPrivate::createRenderer that should attempt
to find such an image, but (a) it is never called (because
Plasma::SvgPrivate::elementRect is called first, and sets themeFailed)
and (b) even if it were, it wouldn't work for QML applets where the
Plasma.Svg item doesn't have an Applet parent (or even ancestor).

Now, for a plain Plasma.Svg item in QML, you can just call
plasmoid.file("images", "something.svgz") explicitly, but if you are
using it via PlasmaCore.IconItem, trying to do the same results in some
odd scaling behaviour and an inability to use named SVG elements,
because IconItem ends up using KIcon internally, rather than Plasma.Svg
(because you passed in an explicit file).

Is there any (sensible) way to fix this?  Is this even intended to work?

Alex
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic