forked from Slicer/Slicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Improve empty folder visibility logic
- The SH tree view saves the "current tree view" pointer in the SH plugin handler - When the user creates a new folder, the folder plugin enables showing empty folders in the sort filter proxy model of the current tree view, and stores the tree view pointer in a list - Right-clicking on scene or any item, the folder plugin shows a new "Show empty folders" action if the user has created a new folder from that tree view (i.e. the current tree view is in the list) - Make the DICOM SH plugin behave the same way as the Folder plugin - Fix issue in sort filter proxy model where the folder disappeared from Markups module when changing visibility. (If the ShowEmptyHierarchyItems flag is on, we expect all the folder type items to show up even if they do not have children or none of them are visible. However, since a vtkMRMLFolderDisplayNode type data node is added to the folder item after changing visibility, it may be filtered out by a node type filter, which is applied for example in the Markups tree view. In this case, the folder would only show up if any of its children were visible. This commit makes sure that if the ShowEmptyHierarchyItems flag is on, the data node type filter does not override it.) Re Slicer#6596
- Loading branch information
Showing
7 changed files
with
165 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.