From: vsr Date: Tue, 26 Nov 2013 06:09:52 +0000 (+0000) Subject: 0022311: EDF 2687 GEOM: Management of Publish Objects X-Git-Tag: V7_3_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1688b97edac9608dd735adaaa1812834eaeaaf91;hp=1c0802a51424fc65c4e392d41ceb96fb5a850a9a;p=modules%2Fgeom.git 0022311: EDF 2687 GEOM: Management of Publish Objects - Sort in ascending order by default --- diff --git a/src/GEOMToolsGUI/GEOMToolsGUI_PublishDlg.cxx b/src/GEOMToolsGUI/GEOMToolsGUI_PublishDlg.cxx index 07260a93b..8c084fb9d 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI_PublishDlg.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI_PublishDlg.cxx @@ -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 ) {