From 70e56963d55fb75ac7279c4958f91b816a3b2a16 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 22 Mar 2006 12:38:51 +0000 Subject: [PATCH] PAL10971 - All columns appear in browser if to check "Auto size" --- src/ObjBrowser/OB_Browser.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index dd6012af0..afd74b39a 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -616,12 +616,15 @@ void OB_Browser::setColumnShown( const int id, const bool on ) return; myView->setShown( myColumnIds[id], on ); + if( !on ) + myView->setColumnWidthMode( myColumnIds[id], QListView::Manual ); } void OB_Browser::setWidthMode( QListView::WidthMode mode ) { for ( int i = 0, n = myView->columns(); i < n; i++ ) - myView->setColumnWidthMode( i, mode ); + if( mode!=QListView::Maximum || myView->columnWidth( i )>0 ) + myView->setColumnWidthMode( i, mode ); } QValueList OB_Browser::columns() const -- 2.39.2