[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Using svg/bitmap images in javascript plasmoid
From: Nikola_Milenkoviæ <electronik87 () gmail ! com>
Date: 2010-02-27 12:58:52
Message-ID: 713e6eb41002270458w3c8db3a7h38f1b3f4e3678dee () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
has anyone had any luck with using icons in javascript plasmoids?
I would like to include a few transparent buttons in plasmoid that I'm
developing for Jam session.
I tried to use IconWidget, and SvgWidget, but no luck.
IconWidget always displays default icon with a question mark in it, and
SvgWidget doesn't display anything at all.
Any help would be appreciated.
Here is some code snippets that I used:
iw = new IconWidget;
iw.adjustSize(200, 200);
iw.setIcon("play");
layout.addItem(iw);
png and svg versions of play icon are in contents/images folder.
kded4 -v:
Qt: 4.6.2
KDE Development Platform: 4.4.00 (KDE 4.4.0) "release 224"
KDE Daemon: $Id: kded.cpp 1031637 2009-10-05 16:58:19Z lunakl $
[Attachment #5 (text/html)]
Hi,<br><br>has anyone had any luck with using icons in javascript plasmoids?<br>I \
would like to include a few transparent buttons in plasmoid that I'm developing \
for Jam session.<br><br>I tried to use IconWidget, and SvgWidget, but no luck.<br> \
IconWidget always displays default icon with a question mark in it, and SvgWidget \
doesn't display anything at all.<br><br>Any help would be \
appreciated.<br><br>Here is some code snippets that I used:<br><br>iw = new \
IconWidget;<br> iw.adjustSize(200, \
200);<br>iw.setIcon("play");<br>layout.addItem(iw);<br clear="all"><br>png \
and svg versions of play icon are in contents/images folder.<br><br>kded4 -v:<br>Qt: \
4.6.2<br>KDE Development Platform: 4.4.00 (KDE 4.4.0) "release 224"<br> KDE \
Daemon: $Id: kded.cpp 1031637 2009-10-05 16:58:19Z lunakl $<br>
_______________________________________________
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