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

List:       kde-panel-devel
Subject:    Re: PlasmaComponents.Button missing feature: use system icons!
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-10-31 9:02:33
Message-ID: 201110311002.33610.notmart () gmail ! com
[Download RAW message or body]

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
_______________________________________________
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