]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1336: size of Strickler table columns
authorasl <asl@opencascade.com>
Fri, 22 Sep 2017 08:36:43 +0000 (11:36 +0300)
committerasl <asl@opencascade.com>
Fri, 22 Sep 2017 08:36:43 +0000 (11:36 +0300)
src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx

index 07bb17adb371ac2b8fd98f6345bf213b61e874dc..ac45da5ccaebd344e17d6311b3f469a25b9c6623 100644 (file)
@@ -161,15 +161,16 @@ HYDROGUI_StricklerTableDlg::HYDROGUI_StricklerTableDlg( HYDROGUI_Module* theModu
         QAbstractItemView::EditKeyPressed );
 
     myTable->setColumnCount( COLUMNS_COUNT );
+
     QStringList aColumnNames;
     aColumnNames << tr( "STRICKLER_TYPE" ) << tr( "STRICKLER_COEFFICIENT" ) << tr( "ATTR_VALUE" ) << tr( "COLOR" );
     myTable->setHorizontalHeaderLabels( aColumnNames );
 
     myTable->horizontalHeader()->setStretchLastSection( false );
-    myTable->horizontalHeader()->setSectionResizeMode( 0, QHeaderView::ResizeToContents );
-    myTable->horizontalHeader()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
-    myTable->horizontalHeader()->setSectionResizeMode( 2, QHeaderView::ResizeToContents );
-    myTable->horizontalHeader()->setSectionResizeMode( 3, QHeaderView::Stretch );
+    myTable->horizontalHeader()->setSectionResizeMode( 0, QHeaderView::Interactive );
+    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 );