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