Salome HOME
Enlarge the initial width of the Object column of the Object Browser.
authormzn <mzn@opencascade.com>
Wed, 26 Oct 2005 10:39:55 +0000 (10:39 +0000)
committermzn <mzn@opencascade.com>
Wed, 26 Oct 2005 10:39:55 +0000 (10:39 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index a94e0fb6057b238870f33f32cf9454f178711218..aa056081c3f0fc79ec876b3f4bc80717f416c043 100644 (file)
@@ -93,6 +93,7 @@
 #include "ToolsGUI_RegWidget.h"
 
 #define OBJECT_BROWSER_WIDTH 300
+#define OBJECT_COLUMN_WIDTH 150
 #define DEFAULT_BROWSER "mozilla"
 
 /*!Image for empty icon.*/
@@ -1457,6 +1458,7 @@ QWidget* SalomeApp_Application::createWindow( const int flag )
     ob->setAutoUpdate( true );
     ob->setAutoOpenLevel( 1 );
     ob->setCaption( tr( "OBJECT_BROWSER" ) );
+    ob->listView()->setColumnWidth( 0, OBJECT_COLUMN_WIDTH );
     ob->resize( OBJECT_BROWSER_WIDTH, ob->height() );
     ob->setFilter( new SalomeApp_OBFilter( selectionMgr() ) );