From: asl Date: Wed, 22 Mar 2006 12:38:51 +0000 (+0000) Subject: PAL10971 - All columns appear in browser if to check "Auto size" X-Git-Tag: for_sharm~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70e56963d55fb75ac7279c4958f91b816a3b2a16;p=modules%2Fgui.git PAL10971 - All columns appear in browser if to check "Auto size" --- 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