Salome HOME
Copyright update 2022
[modules/paravis.git] / src / PVGUI / PVGUI_Module_widgets.cxx
index dbcda56f8c58119c8376d6ad5747590cfdc7da1a..7f65637000c279dc3c479844ffd04d92550dd48b 100644 (file)
@@ -1,6 +1,6 @@
 // PARAVIS : ParaView wrapper SALOME module
 //
-// Copyright (C) 2010-2016  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -68,6 +68,7 @@
 
 #include <vtkPVGeneralSettings.h>
 #include <vtkSMSettings.h>
+#include <vtkPVConfig.h>
 
 class ResizeHelper : public pqPVAnimationWidget
 {
@@ -135,7 +136,11 @@ void PVGUI_Module::setupDockWidgets()
   //            hook delete to pqDeleteReaction.
   QAction* tempDeleteAction = new QAction(this);
   pqDeleteReaction* handler = new pqDeleteReaction(tempDeleteAction);
+#if PARAVIEW_VERSION_MAJOR==5 && PARAVIEW_VERSION_MINOR<9
   handler->connect(propertiesPanel, SIGNAL(deleteRequested(pqPipelineSource*)), SLOT(deleteSource(pqPipelineSource*)));
+#else
+  handler->connect(propertiesPanel, SIGNAL(deleteRequested(pqProxy*)), SLOT(deleteSource(pqProxy*)));
+#endif
   myDockWidgets[propertiesDock] = true;
   propertiesDock->hide();