[PATCH] RunnerManager

Aaron J. Seigo aseigo at kde.org
Wed Apr 23 21:54:27 CEST 2008


On Wednesday 23 April 2008, Jordi Polo wrote:
> I hope I have addressed most of the issues with the first version. I
> deleted any code based on anything not decided (learning, priority list ).
> The methods regarding score in the AbstractRunner just slipped in the patch
> they are not supposed to be there.

getting a lot closer =)

other than the outstanding issues you mention, there's still the issue of 
launchQuery have both sync and async behaviour depending on what parameters 
are used. that needs to get split in two still.

> Also, the copy of the completer in searchcontext is commented and now I
> remember why. I spend today several hours trying to figure out why krunner
> will silently die (no way to debug) when typing one letter. As a result
> there are a zillion of kDebug everywhere and commenting that line make it
> works. It is not a solution, I need to know what is really happening.

it's getting deleted after being copied leaving a dangling pointer. kaboom. 

so in the copy ctor there you probably want something like:

completer = new KCompletion;
completer->setItems(other.d->completer->items());

except that that would likely be ugly on performance. best would be a way to 
share the dptr entirely using e.g. QExplicitlySharedDataPointer. that way all 
copies of the same SearchContext will use the same Private object.

> I have no tested the code that reads the configuration. I'll do it tomorrow
> if I find the time.

cool...

> There are still 3 signals. If I don't find a good reason for having
> matchesChanged, I'll kill it in a couple of weeks.

hopefully sooner than that even ;)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080423/65fad4bd/attachment.pgp 


More information about the Panel-devel mailing list