]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Remove QT4 compatibility.
authorrnv <rnv@opencascade.com>
Thu, 30 May 2019 12:10:05 +0000 (15:10 +0300)
committerrnv <rnv@opencascade.com>
Fri, 31 May 2019 13:39:56 +0000 (16:39 +0300)
CMakeLists.txt
src/PVGUI/PVGUI_Module.cxx
src/PVGUI/PVGUI_Module.h
src/Plugins/ArrayRenamer/pqArraysEditorPropertyWidget.cxx
src/Plugins/MEDReader/ParaViewPlugin/VectBoolSpreadSheet.cxx

index 61a5ffafc280e2c07101f5b5f8cc4726d7ac6e9e..aa3b7c2667f964b95bce04e9bf550162a7c7ed47 100644 (file)
@@ -129,12 +129,7 @@ ENDIF()
 ##
 ## From GUI
 ##
-
-IF (NOT SALOME_GUI_BUILD_WITH_QT5)
-  FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtHelp)
-ELSE()
-  FIND_PACKAGE(SalomeQt5 REQUIRED)
-ENDIF()
+FIND_PACKAGE(SalomeQt5 REQUIRED)
 
 ##
 ## Specific to ParaViS:
index be201adfd69b5022c3887d13a6d0a2f24cce8a21..05b370d33dcdb84c0bf8edaa2db091700b66bcae 100644 (file)
@@ -645,11 +645,8 @@ bool PVGUI_Module::deactivateModule( SUIT_Study* study )
   SUIT_ExceptionHandler::removeCleanUpRoutine( paravisCleanUp );
 
   if (myOldMsgHandler)
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-    qInstallMsgHandler(myOldMsgHandler);
-#else
     qInstallMessageHandler(myOldMsgHandler);
-#endif
+
   restoreCommonWindowsState();
   
   return LightApp_Module::deactivateModule( study );
index 72062d547f712a93ce1d95821900b8f6a5a14bfa..3cdc4bb74ab6d0bf7abd688d67a5a9db14cb7b2e 100644 (file)
@@ -217,11 +217,8 @@ private:
 
   typedef QMap<int, bool> DockWindowMap;         
   DockWindowMap           myCommonMap; 
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-  QtMsgHandler            myOldMsgHandler;
-#else  
   QtMessageHandler        myOldMsgHandler;
-#endif  
+
   vtkEventQtSlotConnect*  VTKConnect;
 
   pqPythonScriptEditor*   myTraceWindow;
index 1f2bcaa3b46507bca192756ca2b246815208ae74..2fac7fca37e74e532c7fc2d8d2e0d7257056b35a 100644 (file)
@@ -437,13 +437,9 @@ pqEditComponents::pqEditComponents( pqComponentsModel* model, QWidget* parent )
   QTableView* componentsTable = new QTableView( this );
   componentsTable->setModel( model );
   aCompsLayout->addWidget( componentsTable );
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-  componentsTable->horizontalHeader()->setResizeMode( pqComponentsModel::COMPONENT_NAME,  QHeaderView::Stretch );
-  componentsTable->horizontalHeader()->setResizeMode( pqComponentsModel::NEW_COMPONENT_NAME, QHeaderView::Stretch );
-#else
   componentsTable->horizontalHeader()->setSectionResizeMode( pqComponentsModel::COMPONENT_NAME,  QHeaderView::Stretch );
   componentsTable->horizontalHeader()->setSectionResizeMode( pqComponentsModel::NEW_COMPONENT_NAME, QHeaderView::Stretch );
-#endif
+
   /// Parameters
   QVBoxLayout *aParamsLayout = new QVBoxLayout( aParams );
   myRenameAllComps = new QCheckBox( "Rename all similar Components", aParams );
@@ -492,17 +488,10 @@ pqArraysEditorPropertyWidget::pqArraysEditorPropertyWidget( vtkSMProxy* smproxy,
   // Layout
   QVBoxLayout* lay = new QVBoxLayout(this);
   lay->addWidget(myArraysTable);
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-  myArraysTable->horizontalHeader()->setResizeMode( pqArraysModel::PROCESSING, QHeaderView::ResizeToContents );
-  myArraysTable->horizontalHeader()->setResizeMode( pqArraysModel::NAME,  QHeaderView::Stretch);
-  myArraysTable->horizontalHeader()->setResizeMode( pqArraysModel::NEW_NAME, QHeaderView::Stretch );
-  myArraysTable->horizontalHeader()->setResizeMode( pqArraysModel::COMPONENTS, QHeaderView::ResizeToContents );
-#else
   myArraysTable->horizontalHeader()->setSectionResizeMode( pqArraysModel::PROCESSING, QHeaderView::ResizeToContents );
   myArraysTable->horizontalHeader()->setSectionResizeMode( pqArraysModel::NAME,  QHeaderView::Stretch);
   myArraysTable->horizontalHeader()->setSectionResizeMode( pqArraysModel::NEW_NAME, QHeaderView::Stretch );
   myArraysTable->horizontalHeader()->setSectionResizeMode( pqArraysModel::COMPONENTS, QHeaderView::ResizeToContents );
-#endif
   myArraysTable->resizeColumnsToContents();
 
   // Connections
index d85fefcc55c501bab7297e9026fe28a9f7ed2b0b..8b9ce5b522f76712ef742c9eddb7aad466a2aae2 100644 (file)
@@ -217,13 +217,9 @@ void VectBoolSpreadSheet::init()
   this->verticalHeader()->setMinimumSectionSize(2);
   this->verticalHeader()->setDefaultSectionSize(2);
   this->setItemDelegate(_delegate);
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-  this->verticalHeader()->setResizeMode(QHeaderView::ResizeToContents);
-  this->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
-#else
   this->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
   this->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
-#endif
+
   this->resizeColumnsToContents();
   this->resizeRowsToContents();
   //this->verticalHeader()->hide();