From: Viktor Uzlov Date: Thu, 1 Apr 2021 14:51:05 +0000 (+0300) Subject: fix Delete button for PV5.9 X-Git-Tag: V9_7_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvuzlov%2F23995;p=modules%2Fparavis.git fix Delete button for PV5.9 --- diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 948c5f41..e43935c1 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -68,6 +68,7 @@ #include #include +#include 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();