]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1336: default size for columns of Strickler table BR_2017_SALOME_83
authorasl <asl@opencascade.com>
Wed, 27 Sep 2017 14:59:59 +0000 (17:59 +0300)
committerasl <asl@opencascade.com>
Wed, 27 Sep 2017 14:59:59 +0000 (17:59 +0300)
src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx

index ac45da5ccaebd344e17d6311b3f469a25b9c6623..b09540c4008b37c3e03578b09ca31dd06bb4a589 100644 (file)
@@ -171,10 +171,15 @@ HYDROGUI_StricklerTableDlg::HYDROGUI_StricklerTableDlg( HYDROGUI_Module* theModu
     myTable->horizontalHeader()->setSectionResizeMode( 1, QHeaderView::Interactive );
     myTable->horizontalHeader()->setSectionResizeMode( 2, QHeaderView::Interactive );
     myTable->horizontalHeader()->setSectionResizeMode( 3, QHeaderView::Interactive );
-    myTable->horizontalHeader()->setMinimumSectionSize( 50 );
-
     myTable->verticalHeader()->setSectionResizeMode( QHeaderView::ResizeToContents );
 
+    const int default_size = 50;
+    myTable->horizontalHeader()->setMinimumSectionSize( default_size  );
+    myTable->horizontalHeader()->resizeSection( 0, 300 );
+    myTable->horizontalHeader()->resizeSection( 1, 75 );
+    myTable->horizontalHeader()->resizeSection( 2, 75 );
+    myTable->horizontalHeader()->resizeSection( 3, 75 );
+
     // Layout
     // buttons
     QHBoxLayout* aButtonsLayout = new QHBoxLayout();
@@ -322,7 +327,7 @@ void HYDROGUI_StricklerTableDlg::setGuiData( const Handle(HYDROData_StricklerTab
     myTable->setItem( aRow, 3, anItem );
   }
 
-  myTable->resizeColumnToContents( 0 );
+  //myTable->resizeColumnToContents( 0 );
   myTable->resizeRowsToContents();
 
   updateControls();