Using svg/bitmap images in javascript plasmoid

Nikola Milenković electronik87 at gmail.com
Sat Feb 27 23:12:12 CET 2010


Thanks.
iw.setIcon("media-playback-start") works.

If I understood correctly from JavaScript API reference, I need to upgrade
KDE to 4.4.1 in order to use QIcon?
Now I receive error message: Cannot find QIcon.

On Sat, Feb 27, 2010 at 5:47 PM, Aaron J. Seigo <aseigo at kde.org> wrote:

> On February 27, 2010, Nikola Milenković wrote:
> > iw.setIcon("play");
>
> this will attempt to load a play icon from the icon theme. there is no such
> icon. (there is media-playback-start, however).
>
> otherwise, you'll need to pass in the path to the image in your package,
> e.g.:
>
> iw.setIcon(new QIcon(plasmoid.file("images", "play.png")))
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Development Frameworks
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100227/59f6f5e8/attachment.htm 


More information about the Plasma-devel mailing list