From: asl Date: Wed, 27 Sep 2017 14:59:59 +0000 (+0300) Subject: refs #1336: default size for columns of Strickler table X-Git-Tag: v2.1~66^2~22^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_2017_SALOME_83;p=modules%2Fhydro.git refs #1336: default size for columns of Strickler table --- diff --git a/src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx b/src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx index ac45da5c..b09540c4 100644 --- a/src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx @@ -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();