From 7536533f8c3aa0b12f0f2b8a6cbb652e015db2a2 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 30 May 2019 15:03:37 +0300 Subject: [PATCH] Remove QT4 compatibility. --- src/GUI/HYBRIDPluginGUI_HypothesisCreator.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/GUI/HYBRIDPluginGUI_HypothesisCreator.cxx b/src/GUI/HYBRIDPluginGUI_HypothesisCreator.cxx index c9ebefb..7c0ea49 100644 --- a/src/GUI/HYBRIDPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/HYBRIDPluginGUI_HypothesisCreator.cxx @@ -530,11 +530,8 @@ QFrame* HYBRIDPluginGUI_HypothesisCreator::buildFrame() myEnforcedTableWidget->setAlternatingRowColors(true); myEnforcedTableWidget->setSelectionMode(QAbstractItemView::ExtendedSelection); myEnforcedTableWidget->setSelectionBehavior(QAbstractItemView::SelectItems); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - myEnforcedTableWidget->horizontalHeader()->setResizeMode(QHeaderView::Interactive); -#else myEnforcedTableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); -#endif + myEnforcedTableWidget->resizeColumnsToContents(); myEnforcedTableWidget->hideColumn(ENF_VER_ENTRY_COLUMN); myEnforcedTableWidget->hideColumn(ENF_VER_COMPOUND_COLUMN); @@ -620,11 +617,8 @@ QFrame* HYBRIDPluginGUI_HypothesisCreator::buildFrame() << tr( "HYBRID_ENF_GROUP_COLUMN" ); myEnforcedMeshTableWidget->setHorizontalHeaderLabels(enforcedMeshHeaders); myEnforcedMeshTableWidget->horizontalHeader()->setStretchLastSection(true); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - myEnforcedMeshTableWidget->horizontalHeader()->setResizeMode(QHeaderView::Interactive); -#else myEnforcedMeshTableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); -#endif + myEnforcedMeshTableWidget->setAlternatingRowColors(true); myEnforcedMeshTableWidget->setSelectionMode(QAbstractItemView::ExtendedSelection); myEnforcedMeshTableWidget->setSelectionBehavior(QAbstractItemView::SelectItems); -- 2.39.2