best place for a helper function

Martin Klapetek martin.klapetek at gmail.com
Fri Mar 1 09:42:35 UTC 2013


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

> Hi,
>
> I am working on a small feature (set to gray offline users' avatars). For
> that I
> have a small helper function to turn a pixmap in a grayscale image... As it
> needs to be used in few places I would not duplicate the code all over (it
> is
> against my non-religious beliefs), so what is the best place to put it?
> Do we have a namespace in common internals for something like this?
>

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.

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


More information about the KDE-Telepathy mailing list