]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
On re-creating of the Object browser, show columns in accordance with preferences.
authorvsr <vsr@opencascade.com>
Tue, 16 Feb 2016 12:58:32 +0000 (15:58 +0300)
committervsr <vsr@opencascade.com>
Fri, 19 Feb 2016 12:33:15 +0000 (15:33 +0300)
src/SalomeApp/SalomeApp_Application.cxx

index fd988572ee8024ab10097a16052286aa76c09263..b867e857c193b5ad988164186342c7deb6062c8d 100644 (file)
@@ -1049,6 +1049,12 @@ QWidget* SalomeApp_Application::createWindow( const int flag )
       ob->setResizeOnExpandItem(resizeOnExpandItem);
       ob->setProperty( "shortcut", QKeySequence( "Alt+Shift+O" ) );
 
+      for ( int i = SalomeApp_DataObject::EntryId; i < SalomeApp_DataObject::LastId; i++ )
+      {
+        bool shown = resourceMgr()->booleanValue( "ObjectBrowser", QString( "visibility_column_id_%1" ).arg( i-1 ), true );
+        ob->treeView()->setColumnHidden( i, !shown );
+      }
+
       // temporary commented
       /*
       for ( int i = SalomeApp_DataObject::ValueIdx; i <= SalomeApp_DataObject::RefEntryIdx; i++ )