Parcourir la source

expansion of nested items in the tree is added

Alireza Mehrtash il y a 11 ans
Parent
commit
37f49865e7

+ 1 - 1
Libs/DICOM/Core/Testing/Cpp/ctkDICOMObjectModelTest1.cpp

@@ -3,7 +3,7 @@
   Library: CTK
   Library: CTK
 
 
   Copyright (c) Brigham and Women's Hospital (BWH).
   Copyright (c) Brigham and Women's Hospital (BWH).
-  Copyright (c) University of Sheffield
+  Copyright (c) University of Sheffield.
 
 
   Licensed under the Apache License, Version 2.0 (the "License");
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   you may not use this file except in compliance with the License.

+ 1 - 0
Libs/DICOM/Widgets/ctkDICOMObjectListWidget.cpp

@@ -70,6 +70,7 @@ void ctkDICOMObjectListWidgetPrivate::populateDICOMObjectTreeView(const QString&
   std::cerr << "fileName is =" << fileName.toUtf8().constData() << "\n";
   std::cerr << "fileName is =" << fileName.toUtf8().constData() << "\n";
   this->dcmObjectTreeView->reset();
   this->dcmObjectTreeView->reset();
   this->dcmObjectTreeView->setModel( dcmObjModel);
   this->dcmObjectTreeView->setModel( dcmObjModel);
+  this->dcmObjectTreeView->expandAll();
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------