PlasmaComponents.Button missing feature: use system icons!
Marco Martin
notmart at gmail.com
Mon Oct 31 09:02:33 UTC 2011
On Sunday 30 October 2011, Mark wrote:
> Hi,
>
> I'm curently using PlasmaComponents.Button but it seems to miss a quite
> important feature. I can't use system icons!
> Icon paths can be set though...
>
> I wouldn't mind implementing this if it it's oke with you all. Just one
> question: How can i currently get just any icon in QML from the installed
> theme?
>
> I'm kinda fearing that functionality is not even existing yet (in core?).
> If it isn't then i will implement that as well, but a pointer to the plasma
> class for getting an icon would be nice :) If it's
> http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKIconLoader.html
> .. Is there also a function that "just" tries to find the icon name you
> give it? The function KIconLoader::loadIcon needs a few parameters. I
> could be looking at the wrong class for all i know ;)
as a commit of 1-2 days ago it should (have to make it work without the
qscript engine hack as well, so outside of plasma)
something like Button { icon: "konqueror"}
should load the system one
Cheers,
Marco Martin
More information about the Plasma-devel
mailing list