[Digikam-devel] [Bug 167873] Tag and album trees are not expanded when searching for entries

Andi Clemens andi.clemens at gmx.net
Sat Aug 16 22:46:35 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=167873         




------- Additional Comments From andi.clemens gmx net  2008-08-16 23:46 -------
Created an attachment (id=26885)
 --> (http://bugs.kde.org/attachment.cgi?id=26885&action=view)
expand patch #1

When searching for albums and tags with the quick filter text search, the
folder view has not been expanded when an item matched the search criteria.

For this to work, we have to use setOpen() on every matched item. In most of
the cases the whole album or tag tree will be expanded, which will be very
annoying when you have a lot of tags or albums.

This commit will introduce a new FolderView method collapseView(CollapseMode
mode), that will collapse the tree when the search criteria is removed. Right
now it has two modes:

* CollapseModeOmitRoot (default): Collapse all items and expand the root item
in the end. This is used most of the time, for example for the AlbumFolderView,
where a root item (My Albums) has to be expanded again, otherwise no albums
will be seen.

* CollapseModeAll: Collapse all the items in the folder view. This is used
right now only in the TagFilterView, which has no root item and therefore
should not try to expand it.

If the new behavior is acceptable, it has to be ported to KDE3 of course.

Andi



More information about the Digikam-devel mailing list