]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMToolsGUI/GEOMToolsGUI_PublishDlg.cxx
Salome HOME
0022311: EDF 2687 GEOM: Management of Publish Objects
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI_PublishDlg.cxx
index 07260a93bbceb41eecf20aa39b8e85daffd99fd7..8c084fb9d17198fc20566ddabcc370616f45c9ce 100644 (file)
@@ -191,13 +191,13 @@ void GEOMToolsGUI_PublishDlg::initData() {
 
   buildTree(aStudy, myGeomRoot);
 
-
   myTreeWidget->resizeColumnToContents(0);
   myTreeWidget->resizeColumnToContents(1);
+  myTreeWidget->sortByColumn(0, Qt::AscendingOrder);
 }
 
 //=================================================================================
-// function : buildTree()
+// function : createItem()
 // purpose  :
 //=================================================================================
 QTreeWidgetItem* GEOMToolsGUI_PublishDlg::createItem(QTreeWidgetItem* theParent, Pair theAttributes, bool isCheckable) {
@@ -224,7 +224,7 @@ QTreeWidgetItem* GEOMToolsGUI_PublishDlg::createItem(QTreeWidgetItem* theParent,
 }
 
 //=================================================================================
-// function : buildTree()
+// function : findParentItem()
 // purpose  :
 //=================================================================================
 QTreeWidgetItem* GEOMToolsGUI_PublishDlg::findParentItem(_PTR(Study) theStudy, SalomeApp_DataObject* theObject, BufferedList& theList ) {