On Mon, Oct 31, 2011 at 10:02 AM, Marco Martin <notm...@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 ;)
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel