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 <ase...@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@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to