[Psi-devel] Avatar Size

Maxime maxime81 at gmail.com
Sat Apr 29 16:23:29 PDT 2006


The advantage of the context menu is to change the size only for few
chat-dialogs. He doesn't disable the possibility offered by this patch :
choose the default size in the options.

2006/4/30, textshell-I1QKlO at neutronstar.dyndns.org <
textshell-I1QKlO at neutronstar.dyndns.org>:
>
> On Sun, Apr 30, 2006 at 12:55:27AM +0200, Maxime wrote:
> > I previously said that avatar size should be selected by the user so I
> > decided to code it. It's done and that's work perfectly but I don't know
> if
> > the devel team wants it, I don't know how to make a patch and to finish,
> the
> > code is maybe to rewrite a little... (it's only a menu added to the
> context
> > menu which appears when you right click on the avatar in that you can
> choose
> > 32x32, 64x64 or 96x96)
> > So if you want, you can contact me : my jid is maxime at im.apinc.org
>
> previous versions of psi (or psi patched to enable avatars) used a hidden
> option to set the avatar size in the chatdialog.
>
> The following patch uses them in the chat dialog.
>
>
> hunk ./src/chatdlg.cpp 677
> -               d->avatar->setPixmap(p.scaled
> (QSize(32,32),Qt::KeepAspectRatio,Qt::SmoothTransformation));
> +               d->avatar->setPixmap(p.scaled(QSize(option.avatarsSize,
> option.avatarsSize),Qt::KeepAspectRatio,Qt::SmoothTransformation));
>
>
> works fine here. I'm not sure a context menu is the best option, but maybe
> that "localizes" the option, so it doesn't clutter die Prefs dialog.
>
>
> - Martin H.
> _______________________________________________
> psi-devel mailing list
> psi-devel at lists.affinix.com
> http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/psi-devel-affinix.com/attachments/20060430/3ee1840a/attachment.htm


More information about the psi-devel mailing list