From: vsr Date: Tue, 16 Feb 2016 12:58:32 +0000 (+0300) Subject: On re-creating of the Object browser, show columns in accordance with preferences. X-Git-Tag: V7_8_0a2~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80bc6e0540edf80b8d415d960b177295dbc8ce4b;p=modules%2Fgui.git On re-creating of the Object browser, show columns in accordance with preferences. --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index fd988572e..b867e857c 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -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++ )