From 5e9bb556c3d1a28b66b973abbb5cb3c676317809 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 31 May 2019 15:58:02 +0300 Subject: [PATCH] Remove QT4 compatibility. --- CMakeLists.txt | 6 +----- src/GUI/GMSHPluginGUI_HypothesisCreator.cxx | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3ce1ba..db489b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,11 +122,7 @@ ENDIF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI) # Qt - IF(NOT SALOME_GUI_BUILD_WITH_QT5) - FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui) - ELSE() - FIND_PACKAGE(SalomeQt5 REQUIRED) - ENDIF() + FIND_PACKAGE(SalomeQt5 REQUIRED) ENDIF(SALOME_BUILD_GUI) # OCCT FIND_PACKAGE(SalomeOpenCASCADE REQUIRED) diff --git a/src/GUI/GMSHPluginGUI_HypothesisCreator.cxx b/src/GUI/GMSHPluginGUI_HypothesisCreator.cxx index 477727f..66b46f2 100644 --- a/src/GUI/GMSHPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GMSHPluginGUI_HypothesisCreator.cxx @@ -247,11 +247,7 @@ QFrame* GMSHPluginGUI_HypothesisCreator::buildFrame() compoundHeaders << tr( "GMSH_COMPOUND_ENTRY_COLUMN" ) << tr( "GMSH_COMPOUND_NAME_COLUMN" ); myCompoundTable->setHorizontalHeaderLabels(compoundHeaders); myCompoundTable->horizontalHeader()->hideSection(0); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - myCompoundTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); -#else myCompoundTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); -#endif myCompoundTable->resizeColumnToContents(1); myCompoundTable->setAlternatingRowColors(true); myCompoundTable->verticalHeader()->hide(); -- 2.39.2