ob->addColumn( tr( QString().sprintf( "OBJ_BROWSER_COLUMN_%d", i ) ), i );
ob->setColumnShown( i, resMgr->booleanValue( "ObjectBrowser",
QString().sprintf( "visibility_column_%d", i ), true ) );
- //ob->listView()->setColumnWidthMode( i, autoSize ? QListView::Maximum : QListView::Manual );
+ ob->listView()->setColumnWidthMode( i, autoSize ? QListView::Maximum : QListView::Manual );
}
// Create OBSelector
return;
bool autoSize = resMgr->booleanValue( "ObjectBrowser", "auto_size", false );
- /*for ( int i = SalomeApp_DataObject::CT_Value; i <= SalomeApp_DataObject::CT_RefEntry; i++ )
+ for ( int i = SalomeApp_DataObject::CT_Value; i <= SalomeApp_DataObject::CT_RefEntry; i++ )
ob->listView()->setColumnWidthMode( i, autoSize ? QListView::Maximum : QListView::Manual );
- if( autoSize )
- ob->listView()->adjustSize();*/
+ updateObjectBrowser( false );
}
}
}
if ( objectBrowser() )
+ {
+ objectBrowser()->updateGeometry();
objectBrowser()->updateTree();
+ }
}