From: asl Date: Wed, 22 Mar 2006 14:01:08 +0000 (+0000) Subject: In case of auto sizing the columns must be adjusted X-Git-Tag: for_sharm~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d7823aa1255c369b62531b504580fd337a94e57;p=modules%2Fgui.git In case of auto sizing the columns must be adjusted --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 12ad26ac5..f4e934a99 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1826,6 +1826,10 @@ void LightApp_Application::preferencesChanged( const QString& sec, const QString autoSizeFirst = resMgr->booleanValue( "ObjectBrowser", "auto_size_first", true ); ob->setWidthMode( autoSize ? QListView::Maximum : QListView::Manual ); ob->listView()->setColumnWidthMode( 0, autoSizeFirst ? QListView::Maximum : QListView::Manual ); + if( autoSize ) + for( int i=1; ilistView()->columns(); i++ ) + if( ob->listView()->columnWidth( i )>0 ) + ob->listView()->adjustColumn( i ); updateObjectBrowser( false ); } }