Searching an entire QListView

Sebastian Kratzert skratzert at gmx.de
Tue Jul 23 21:21:02 UTC 2002


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

Am Sonntag, 14. Juli 2002 01:26 schrieb Victor Röder:
> Hi!
>
> I wanted to ask if someone of you has a nice solution for searching
> QListView. I'm trying to write a little search mechanism for the
> Documentation-Panel of Gideon.
> Problem while searching: The children of an item are not created and
> initialized unless you open the item. Therefore you have to open each item,
> search it and close it again (so that the tree doesn't get too large) if
> nothing was found in that part of the tree.
> Has someone of you code where I can have a look? Or a complete solution

Hi,

Now I have a "complete" solution ;)
Hope this is what you intended to do. With this patch it's possible to search 
for a word and after that clicking on next/prev jumps to the next/prev. 
match.

- -- 
Hope i'm not to late,

Sebastian Kratzert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Pax2rZSaXKbuJJwRAnIFAJ9qtoyrjouSDjRjTSzg4/CI/OhUBwCcCSA4
zaoxcmi5iYC7sXn6h1BQ6Ic=
=zQEy
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doctree_search.diff
Type: text/x-diff
Size: 9594 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20020723/112ada00/attachment.bin>


More information about the KDevelop-devel mailing list