best place for a helper function

Martin Klapetek martin.klapetek at gmail.com
Fri Mar 1 11:21:53 UTC 2013


On Fri, Mar 1, 2013 at 10:50 AM, Alin M Elena <alinm.elena at gmail.com> wrote:

> **
>
> >This should be part of the delegate code. However we don't have any
> "common" delegate, so currenty the best place would be
> abstract-contact-delegate.cpp in contact list and then use it in the
> deriving delegates.
>
>
>
> I need it in tooltip too.
>

What you could do is to put it inside KTp::Contact and then reimplement
avatar() and check if the contact is offline and if so, return the greyed
avatar. Makes things simpler and you don't have to change any other code.

Cheers
-- 
Martin Klapetek | KDE Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130301/68e51448/attachment.html>


More information about the KDE-Telepathy mailing list