[GSOC] Quail - Progress 11th July 2013
Phil Hannent
phil at hannent.co.uk
Thu Jul 11 16:16:48 EDT 2013
On 11 July 2013 20:27, Ka-Hing Cheung <khc at hxbc.us> wrote:
> On Thu, 2013-07-11 at 12:04 +0100, Phil Hannent wrote:
> > for (widget = widgets.first(), l = chatInfoList;
> > widget != NULL && l != NULL;
> > widget = widgets.next(), l = l->next)
> > {
> >
> >
> > (widgets is a QList<QWidget*> and chatInfoList is a GList of
> > PurplePluginProtocolInfo*)
>
> Have you considered writing a generic wrapper that exposes iterators for
> QList and GList, so you can use modern c++ techniques like foreach?
>
> Thanks for the feedback. I have not considered writing a wrapper, I played
with the QListIterator class that Qt has. However I am rushing to get some
milestones ticked off, I am intending to come back and look at the GLib
documentation to see how to best approach it.
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20130711/168e4972/attachment.html>
More information about the Devel
mailing list