]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
In case of auto sizing the columns must be adjusted
authorasl <asl@opencascade.com>
Wed, 22 Mar 2006 14:01:08 +0000 (14:01 +0000)
committerasl <asl@opencascade.com>
Wed, 22 Mar 2006 14:01:08 +0000 (14:01 +0000)
src/LightApp/LightApp_Application.cxx

index 12ad26ac56bcceea955cedeea5ab6a472471b896..f4e934a99ae64e4e3dd50573f5267330055e7259 100644 (file)
@@ -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; i<ob->listView()->columns(); i++ )
+         if( ob->listView()->columnWidth( i )>0 )
+           ob->listView()->adjustColumn( i );
       updateObjectBrowser( false );
     }
   }