KListViewSearchLine

Scott Wheeler wheeler at kde.org
Mon Feb 16 01:51:47 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've had a class sitting around for a while now that I've been playing with 
that makes it easy to add a search line to a listview.

I had previously hacked this into KBugBuster, but today decided to take it a 
little further.

Here are a couple of screenies:

http://ktown.kde.org/~wheeler/images/kmail-search.png
http://ktown.kde.org/~wheeler/images/kbugbuster-search.png

Things don't quite work with switching folders in KMail, but that's probably 
just a matter of finding an appropriate signal to connect to the 
updateSearch() slot.

It's also a little slow on really large listviews (say, 10000 items) and I've 
been playing around with one that works in the event loop, but then the 
KListView painting performance kills it.  I can probably get that working, 
but it will take a bit of hacking on putting an event filter in the new class 
and having it throw away enough paint events to make it usable.

For those that are interested I've attached the class (for kdeui) along with 
patches for KBugBuster and KMail and a small change to KListView to provide 
some useful signals.

I presume there's some interest in this, but I thought before going to far on 
it I'd just put it out there and let people comment on it.  If there's 
interest in this being moved into kdelibs and worked on there I can do so...

- -Scott
- -- 
Gambling: It's like a tax on people who don't understand mathematics.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFAMCI3Qu0ByfY5QTkRAp03AJ9EriiaXyx38V5NmG0zmaFQc6/kuwCffocn
DJ89ZoTFcPytpNtP3DzIoPk=
=WrHP
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kbugbuster-listviewsearchline.patch
Type: text/x-diff
Size: 1431 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040216/9bc63ee5/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdeui-listviewsearchline.patch
Type: text/x-diff
Size: 3151 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040216/9bc63ee5/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmail-listviewsearchline.patch
Type: text/x-diff
Size: 1654 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040216/9bc63ee5/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klistviewsearchline.h
Type: text/x-chdr
Size: 1905 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040216/9bc63ee5/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klistviewsearchline.cpp
Type: text/x-c++src
Size: 2607 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040216/9bc63ee5/attachment.cpp>


More information about the kde-core-devel mailing list