From: rnv Date: Thu, 30 May 2019 11:58:53 +0000 (+0300) Subject: Remove QT4 compatibility. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8440a1ca6ad6851f578c06322b5d7b9da28ad26;p=plugins%2Fghs3dplugin.git Remove QT4 compatibility. --- diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index dd96b88..452397b 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -490,11 +490,8 @@ QFrame* GHS3DPluginGUI_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); @@ -568,11 +565,8 @@ QFrame* GHS3DPluginGUI_HypothesisCreator::buildFrame() << tr( "GHS3D_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);