Bug 244509 - Give option to collapse and expand levels in the Collection browser
Summary: Give option to collapse and expand levels in the Collection browser
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Collection Browser (show other bugs)
Version: 2.3.1
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 16:37 UTC by Ravi Arora
Modified: 2024-03-30 00:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ravi Arora 2010-07-13 16:37:37 UTC
Version:           2.3.1 (using Devel) 
OS:                Linux

Collection browser shows the collection like a tree and we can expand/collapse each node. However once I have expanded selected nodes I want to collapse all the nodes so that again I can have the overview of my collection. I can do it manually but that's tiresome. It would be better if we have option to collapse the whole list and expand the whole list as required. It would add an edge if i can just collapse/expand at levels, e.g. collapse/expand at first level of grouping then second level and so on.

Reproducible: Always
Comment 1 sparhawk 2013-09-26 07:01:43 UTC
In general, you can select the node and press the left arrow to collapse it (assuming left isn't mapped to anything else). However, selecting all (ctrl+a) and pressing the left arrow doesn't work as expected.
Comment 2 Bug Janitor Service 2024-03-24 17:32:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/amarok/-/merge_requests/67
Comment 3 Tuomas Nurmi 2024-03-30 00:12:09 UTC
Git commit ea91cd3bc6a74cd31fbde07d99958570d3b6f406 by Tuomas Nurmi.
Committed on 30/03/2024 at 00:02.
Pushed by nurmi into branch 'master'.

Add collection browser right click menu entry for collapsing all.

Leveraging an existing string and a very straightforward QTreeView method.
Only visible if some of the selected items is expanded, or not first level.

M  +1    -0    ChangeLog
M  +25   -0    src/browsers/CollectionTreeView.cpp
M  +1    -0    src/browsers/CollectionTreeView.h

https://invent.kde.org/multimedia/amarok/-/commit/ea91cd3bc6a74cd31fbde07d99958570d3b6f406