Request for review: Grepview plugin rewrite
Aleix Pol
aleixpol at kde.org
Fri Aug 27 15:14:58 UTC 2010
On Fri, Aug 27, 2010 at 2:56 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> On 27.08.10 14:29:32, Aleix Pol wrote:
> > Well, before having tried it I have been browsing through the code for a
> > while and I have few comments.
> >
> > - Please explain a little the background, why do you use PCRE instead of
> > QRegExp? it adds a dependency and I'm not sure if it's such a big
> advantage
> > (I don't know, but there has to be a reason).
>
> In particular as that means having to jump through hoops to make stuff work
> correctly with non-ascii strings.
>
> > - Don't use singleShot for delaying slot processing, it's preferred to
> use
> > QMetaObject::invokeMethod with Qt::QueuedConnection type
>
> Who said that? singleShot is just fine for doing delayed slot processing if
> everything runs in the main thread.
>
::singleShot uses the timer infrastructure AFAIK, so it does more stuff
other than just triggering the slot. It might be a microoptimization but I
think it's a good practice to use ::invokeMethod
>
> Andreas
>
> --
> Your analyst has you mixed up with another patient. Don't believe a
> thing he tells you.
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100827/b00ed20b/attachment.html>
More information about the KDevelop-devel
mailing list