From: mkr Date: Fri, 4 Apr 2008 14:36:00 +0000 (+0000) Subject: Fix for bug IPAL19207 : Qt4 porting: Preferences/Post-Pro/Object browser - no Value... X-Git-Tag: V5_0_0~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f1c5c2f008108af80adbb7b57186839c8bc2d80;p=modules%2Fgui.git Fix for bug IPAL19207 : Qt4 porting: Preferences/Post-Pro/Object browser - no Value and Entry check-boxes. --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 403aeb870..19cf616f9 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -800,10 +800,10 @@ void SalomeApp_Application::createPreferences( LightApp_Preferences* pref ) int salomeCat = pref->addPreference( tr( "PREF_CATEGORY_SALOME" ) ); int obTab = pref->addPreference( tr( "PREF_TAB_OBJBROWSER" ), salomeCat ); int defCols = pref->addPreference( tr( "PREF_GROUP_DEF_COLUMNS" ), obTab ); - for ( int i = SalomeApp_DataObject::ValueIdx; i <= SalomeApp_DataObject::RefEntryIdx; i++ ) + for ( int i = SalomeApp_DataObject::EntryIdx; i <= SalomeApp_DataObject::RefEntryIdx; i++ ) { - pref->addPreference( tr( QString().sprintf( "OBJ_BROWSER_COLUMN_%d", i ).toLatin1() ), defCols, - LightApp_Preferences::Bool, "ObjectBrowser", QString().sprintf( "visibility_column_%d", i ) ); + pref->addPreference( tr( QString().sprintf( "OBJ_BROWSER_COLUMN_%d", i-1 ).toLatin1() ), defCols, + LightApp_Preferences::Bool, "ObjectBrowser", QString().sprintf( "visibility_column_%d", i-1 ) ); } pref->setItemProperty( "columns", 1, defCols );