Sort the matches of a runner

Aaron J. Seigo aseigo at kde.org
Tue Sep 15 20:40:03 CEST 2009


On September 15, 2009, Jan Gerrit Marker wrote:
> I wrote a runner to kill applications (it is in playground). A user asked
>  me to sort the matchs by CPU load. So my question is if there's a working
>  possibility to sort the matches.

you can call setRelevance on matches, which is a qreal with values expected 
between 0 and 1. anything more fine grained than that would require some 
additional work in krunner.

-- 
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 Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090915/10952bc5/attachment.sig 


More information about the Plasma-devel mailing list