PlasmaComponents.Button missing feature: use system icons!

Mark markg85 at gmail.com
Mon Oct 31 09:17:56 UTC 2011


On Mon, Oct 31, 2011 at 10:02 AM, Marco Martin <notmart at gmail.com> wrote:

> 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
>  <https://mail.kde.org/mailman/listinfo/plasma-devel>


Awesome! Guess i need to update then ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111031/2899fdc4/attachment.html>


More information about the Plasma-devel mailing list