From 9c0c482c0b345c62a90691a114b031f348173af2 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 30 May 2019 15:07:23 +0300 Subject: [PATCH] Remove QT4 compatibility. --- src/GUI/NETGENPluginGUI_HypothesisCreator.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx b/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx index 037948a..cf7d76b 100644 --- a/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx @@ -413,11 +413,8 @@ QFrame* NETGENPluginGUI_HypothesisCreator::buildFrame() localSizeHeaders << tr( "LSZ_ENTRY_COLUMN" )<< tr( "LSZ_NAME_COLUMN" ) << tr( "LSZ_LOCALSIZE_COLUMN" ); myLocalSizeTable->setHorizontalHeaderLabels(localSizeHeaders); myLocalSizeTable->horizontalHeader()->hideSection(LSZ_ENTRY_COLUMN); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - myLocalSizeTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); -#else myLocalSizeTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); -#endif + myLocalSizeTable->resizeColumnToContents(LSZ_NAME_COLUMN); myLocalSizeTable->resizeColumnToContents(LSZ_LOCALSIZE_COLUMN); myLocalSizeTable->setAlternatingRowColors(true); -- 2.39.2