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

List:       kde-panel-devel
Subject:    Re: Using svg/bitmap images in javascript plasmoid
From:       Nikola_Milenkoviæ <electronik87 () gmail ! com>
Date:       2010-02-27 22:12:12
Message-ID: 713e6eb41002271412p4f7ac6f7y6664f3e2294f46d () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@kde.org> wrote:

> On February 27, 2010, Nikola Milenkovi=C4=87 wrote:
> > iw.setIcon("play");
>
> this will attempt to load a play icon from the icon theme. there is no su=
ch
> 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
>

[Attachment #5 (text/html)]

Thanks.<br>iw.setIcon(&quot;media-playback-start&quot;) works.<br><br>If I understood \
correctly from JavaScript API reference, I need to upgrade KDE to 4.4.1 in order to \
use QIcon?<br>Now I receive error message: Cannot find QIcon. <br> <br><div \
class="gmail_quote">On Sat, Feb 27, 2010 at 5:47 PM, Aaron J. Seigo <span \
dir="ltr">&lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> On February 27, 2010, \
Nikola Milenković wrote:<br> &gt; iw.setIcon(&quot;play&quot;);<br>
<br>
this will attempt to load a play icon from the icon theme. there is no such<br>
icon. (there is media-playback-start, however).<br>
<br>
otherwise, you&#39;ll need to pass in the path to the image in your package, \
e.g.:<br> <br>
iw.setIcon(new QIcon(plasmoid.file(&quot;images&quot;, &quot;play.png&quot;)))<br>
<font color="#888888"><br>
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA   EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Development Frameworks<br>
</font><div><div></div><div \
class="h5">_______________________________________________<br> Plasma-devel mailing \
list<br> <a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
</div></div></blockquote></div>



_______________________________________________
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