[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How KDE attaches icons to application?
From: dmitry chernov <diman4ik.chernov () gmail ! com>
Date: 2011-10-05 6:58:34
Message-ID: CAM++sU9OrG96paVsWN2GneWTSjzz0hdy4pUzTyAj_-2NXPnc4g () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thank you I just added KAboutData::setProgramIconName() call with the proper
name because my displayed and internal application names are different,
cleared the cache, and thats it: I've got icons. Thank you again.
On Wed, Oct 5, 2011 at 9:09 AM, Yogesh Marwaha <yogeshm.007@gmail.com>wrote:
> On 4 October 2011 21:19, dmitry chernov <diman4ik.chernov@gmail.com>
> wrote:
> > Yes I use KApplication and KAboutData. But in KAboutData there two
> > parameters setting application name. One which sets the displayed name,
> and
> > one which is internal. Should icon name match any of them?
> >
> Icon name should match application name, otherwise you can use
> KAboutData::setProgramIconName()
>
> This is all you need to have icons in titlebar, taskbar, about dialog
> etc. (at least if you are on linux)
>
> For more info make sure that you have read
> http://techbase.kde.org/Development/Tutorial/Icons
>
> Most important point is the naming of icons in your build tree. If
> nothing helps, deleting icon cache might (rm -rf
> /var/tmp/kdecache-''user''/icon-cache.kcache)
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
[Attachment #5 (text/html)]
Thank you I just added KAboutData::setProgramIconName() call with the proper name \
because my displayed and internal application names are different, cleared the cache, \
and thats it: I've got icons. Thank you again.<br> <br><div \
class="gmail_quote">On Wed, Oct 5, 2011 at 9:09 AM, Yogesh Marwaha <span \
dir="ltr"><<a href="mailto:yogeshm.007@gmail.com">yogeshm.007@gmail.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> <div class="im">On 4 October 2011 21:19, dmitry \
chernov <<a href="mailto:diman4ik.chernov@gmail.com">diman4ik.chernov@gmail.com</a>> \
wrote:<br> > Yes I use KApplication and KAboutData. But in KAboutData there \
two<br> > parameters setting application name. One which sets the displayed name, \
and<br> > one which is internal. Should icon name match any of them?<br>
><br>
</div>Icon name should match application name, otherwise you can use<br>
KAboutData::setProgramIconName()<br>
<br>
This is all you need to have icons in titlebar, taskbar, about dialog<br>
etc. (at least if you are on linux)<br>
<br>
For more info make sure that you have read<br>
<a href="http://techbase.kde.org/Development/Tutorial/Icons" \
target="_blank">http://techbase.kde.org/Development/Tutorial/Icons</a><br> <br>
Most important point is the naming of icons in your build tree. If<br>
nothing helps, deleting icon cache might (rm -rf<br>
/var/tmp/kdecache-''user''/icon-cache.kcache)<br>
<div><div></div><div class="h5"><br>
>> Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe <<<br> </div></div></blockquote></div><br>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic