Slicer: 2145-support-for-installing-extension-from-file 47b664f3

Author Committer Branch Timestamp Parent
naucoin naucoin 2145-support-for-installing-extension-from-file 2012-12-26 17:13:04 2145-support-for-installing-extension-from-file bc6d19e2
Affected Issues 0001735: Annotation widget does not maintain collapsed state after refresh.
Changeset

BUG: stop the annotation tree view from auto expanding lists

Don't use calling setMRMLScene on the tree view to refresh the tree,
as it resets the expand level on the tree view, only call it when
the scene is different.
This stopped the auto added top level all annotations list and the fiducials/ruler
list nodes from expanding, so invoke an event from the logic when those default
hierarchy nodes are added to trigger the tree to expand them (using the
Expanded value on the hierarchy node).
Also expand the hierarchy node when it's added by the user via the add
hierarchy button.

Fixes issue 0001735

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21531 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Loadable/Annotations/GUI/qSlicerAnnotationModuleWidget.cxx Diff File
mod - Modules/Loadable/Annotations/GUI/qSlicerAnnotationModuleWidget.h Diff File
mod - Modules/Loadable/Annotations/Logic/vtkSlicerAnnotationModuleLogic.cxx Diff File
mod - Modules/Loadable/Annotations/Logic/vtkSlicerAnnotationModuleLogic.h Diff File