0022311: EDF 2687 GEOM: Management of Publish Objects

- Sort in ascending order by default
This commit is contained in:
vsr 2013-11-26 06:09:52 +00:00
parent 1c0802a514
commit 1688b97eda

View File

@ -191,13 +191,13 @@ void GEOMToolsGUI_PublishDlg::initData() {
buildTree(aStudy, myGeomRoot); buildTree(aStudy, myGeomRoot);
myTreeWidget->resizeColumnToContents(0); myTreeWidget->resizeColumnToContents(0);
myTreeWidget->resizeColumnToContents(1); myTreeWidget->resizeColumnToContents(1);
myTreeWidget->sortByColumn(0, Qt::AscendingOrder);
} }
//================================================================================= //=================================================================================
// function : buildTree() // function : createItem()
// purpose : // purpose :
//================================================================================= //=================================================================================
QTreeWidgetItem* GEOMToolsGUI_PublishDlg::createItem(QTreeWidgetItem* theParent, Pair theAttributes, bool isCheckable) { 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 : // purpose :
//================================================================================= //=================================================================================
QTreeWidgetItem* GEOMToolsGUI_PublishDlg::findParentItem(_PTR(Study) theStudy, SalomeApp_DataObject* theObject, BufferedList& theList ) { QTreeWidgetItem* GEOMToolsGUI_PublishDlg::findParentItem(_PTR(Study) theStudy, SalomeApp_DataObject* theObject, BufferedList& theList ) {