From 4d7823aa1255c369b62531b504580fd337a94e57 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 22 Mar 2006 14:01:08 +0000 Subject: [PATCH] In case of auto sizing the columns must be adjusted --- src/LightApp/LightApp_Application.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 ); } } -- 2.39.2