On Mon, Feb 2, 2009 at 8:04 AM, Jesse Aldridge <[email protected]> wrote:

> Any hints on how to go about making this work?  Is there an easy way
> to temporarily substitute the current set of nodes with another?  I
> imagine I'm going to have to do a lot of figuring out about how find
> works in Leo, but any suggestions would be appreciated.

The standard way in qt is to use QSortFilterProxyModel for behaviour
like this. It only works with QTreeView though. Normal
QSortFilterProxyModel does not work well with trees, but trolltech
labs has a C++ version of one that does (I've used it myself).

I'd suggest you create a new window with a tree widget and a search
box. That way, the original document stays intact while you do the
elimination.

I've created a quick search widget that does this in a flat list
fashion, grep for LeoQuickSearchWidget

Try it out vy executing this script:

g.insqs(c)

And check out the QuickSearch tab. Press enter to do the search.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to