From a9262d63ca03da359abfc4cdbf3ee0b0927ec938 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 22 Sep 2017 11:36:43 +0300 Subject: [PATCH] refs #1336: size of Strickler table columns --- src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ); -- 2.39.2